-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup hass.io component #12556
Cleanup hass.io component #12556
Conversation
tests/components/hassio/test_http.py
Outdated
API_PASSWORD = 'pass1234' | ||
|
||
|
||
@pytest.fixture |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redefinition of unused 'hassio_env' from line 11
tests/components/hassio/test_http.py
Outdated
from homeassistant.setup import async_setup_component | ||
|
||
from tests.common import mock_coro | ||
from .test_init import hassio_env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'.test_init.hassio_env' imported but unused
from homeassistant.components.hassio import async_check_config | ||
|
||
from tests.common import mock_coro | ||
from .test_init import hassio_env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'.test_init.hassio_env' imported but unused
from homeassistant.setup import async_setup_component | ||
from homeassistant.components.hassio import async_check_config | ||
|
||
from tests.common import mock_coro |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'tests.common.mock_coro' imported but unused
import pytest | ||
|
||
from homeassistant.setup import async_setup_component | ||
from homeassistant.components.hassio import async_check_config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'homeassistant.components.hassio.async_check_config' imported but unused
import os | ||
from unittest.mock import patch, Mock | ||
|
||
import pytest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'pytest' imported but unused
"""The tests for the hassio component.""" | ||
import asyncio | ||
import os | ||
from unittest.mock import patch, Mock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'unittest.mock.Mock' imported but unused
tests/components/hassio/test_init.py
Outdated
import os | ||
from unittest.mock import patch, Mock | ||
|
||
import pytest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'pytest' imported but unused
tests/components/hassio/test_init.py
Outdated
import os | ||
from unittest.mock import patch, Mock | ||
|
||
import pytest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'pytest' imported but unused
Description:
A small cleanup of hass.io component for more readable code parts.