Add support to Dyson 360 Eye robot vacuum using new vacuum platform (#8852)
* Add support to Dyson 360 Eye robot vacuum using new vacuum platform * Fix tests with Python 3.5 * Code review * Code review - v2 * Code review - v3
This commit is contained in:
1 parent
82a7dffc03
commit
83afd12807
11 files changed
+468
-25
No files matched your search
@@ -29,7 +29,9 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
devices = []
|
||||
unit = hass.config.units.temperature_unit
|
||||
# Get Dyson Devices from parent component
|
||||
for device in hass.data[DYSON_DEVICES]:
|
||||
from libpurecoollink.dyson_pure_cool_link import DysonPureCoolLink
|
||||
for device in [d for d in hass.data[DYSON_DEVICES] if
|
||||
isinstance(d, DysonPureCoolLink)]:
|
||||
devices.append(DysonFilterLifeSensor(hass, device))
|
||||
devices.append(DysonDustSensor(hass, device))
|
||||
devices.append(DysonHumiditySensor(hass, device))
|
||||
|
||||
Reference in new issue
Block a user