Black
This commit is contained in:
1 parent
da05dfe708
commit
4de97abc3a
2676 files changed
+163166
-140084
No files matched your search
@@ -21,8 +21,7 @@ async def async_process_devices(hass, manager):
|
||||
for switch in manager.switches:
|
||||
if not switch.is_dimmable():
|
||||
devices[VS_SWITCHES].append(switch)
|
||||
_LOGGER.info(
|
||||
"%d VeSync standard switches found", len(manager.switches))
|
||||
_LOGGER.info("%d VeSync standard switches found", len(manager.switches))
|
||||
|
||||
return devices
|
||||
|
||||
@@ -38,8 +37,7 @@ class VeSyncDevice(ToggleEntity):
|
||||
def unique_id(self):
|
||||
"""Return the ID of this device."""
|
||||
if isinstance(self.device.sub_device_no, int):
|
||||
return ('{}{}'.format(
|
||||
self.device.cid, str(self.device.sub_device_no)))
|
||||
return "{}{}".format(self.device.cid, str(self.device.sub_device_no))
|
||||
return self.device.cid
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user