Improved Homekit tests (#12800)
* Added test for temperature fahrenheit * Restructured tests to use more mocks * Rearanged homekit constants * Improved 'test_homekit_class' * Added import statements * Fix Pylint Test errors
This commit is contained in:
1 parent
d3386907a4
commit
168e1f0e2d
11 files changed
+420
-94
No files matched your search
@@ -64,12 +64,10 @@ def async_setup(hass, config):
|
||||
|
||||
|
||||
def import_types():
|
||||
"""Import all types from files in the HomeKit dir."""
|
||||
"""Import all types from files in the HomeKit directory."""
|
||||
_LOGGER.debug("Import type files.")
|
||||
# pylint: disable=unused-variable
|
||||
from .covers import Window # noqa F401
|
||||
# pylint: disable=unused-variable
|
||||
from .sensors import TemperatureSensor # noqa F401
|
||||
from . import covers, sensors # noqa F401
|
||||
|
||||
|
||||
def get_accessory(hass, state):
|
||||
|
||||
Reference in new issue
Block a user