Add sensor support for dyson 2018 models (#22578)
fix check for already created entities remove hepa and carbon filter add AQI attribute initial commit fix check for already created entities remove hepa and carbon filter add AQI attribute add air quality component tests fix method call tests fix line lengths fix pylint issues fix docstrings revert fan related changes remove whitespace change fix fan update state test add for loop for platform initialization add requested changes to aiq platform change string concatenation to new style string formatting update air quality tests update air quality tests refactor sensor component changes fix pylint issues fix debug string in the air quality component replace failing tests for older devices fix line length fan tests remove dependencies const and move imports move back imports to methods remove whitespace from blank line
This commit is contained in:
1 parent
b4e2a0ef84
commit
1d70005b01
9 files changed
+430
-112
No files matched your search
@@ -87,7 +87,7 @@ class DysonTest(unittest.TestCase):
|
||||
assert mocked_login.call_count == 1
|
||||
assert mocked_devices.call_count == 1
|
||||
assert len(self.hass.data[dyson.DYSON_DEVICES]) == 1
|
||||
assert mocked_discovery.call_count == 4
|
||||
assert mocked_discovery.call_count == 5
|
||||
|
||||
@mock.patch('libpurecool.dyson.DysonAccount.devices',
|
||||
return_value=[_get_dyson_account_device_not_available()])
|
||||
@@ -172,7 +172,7 @@ class DysonTest(unittest.TestCase):
|
||||
assert mocked_login.call_count == 1
|
||||
assert mocked_devices.call_count == 1
|
||||
assert len(self.hass.data[dyson.DYSON_DEVICES]) == 1
|
||||
assert mocked_discovery.call_count == 4
|
||||
assert mocked_discovery.call_count == 5
|
||||
|
||||
@mock.patch('libpurecool.dyson.DysonAccount.devices',
|
||||
return_value=[_get_dyson_account_device_not_available()])
|
||||
|
||||
Reference in new issue
Block a user