Fix PyLint 1.6 issues (#2471)
This commit is contained in:
1 parent
978ebb9c59
commit
31b8e49ad2
7 files changed
+6
-7
No files matched your search
@@ -133,7 +133,7 @@ class AcerSwitch(SwitchDevice):
|
||||
else:
|
||||
self._available = False
|
||||
|
||||
for key in self._attributes.keys():
|
||||
for key in self._attributes:
|
||||
msg = CMD_DICT.get(key, None)
|
||||
if msg:
|
||||
awns = self._write_read_format(msg)
|
||||
|
||||
@@ -47,7 +47,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
|
||||
dev = []
|
||||
for device in devices:
|
||||
for type_name in SWITCH_TYPES.keys():
|
||||
for type_name in SWITCH_TYPES:
|
||||
dev.append(ThinkingCleanerSwitch(device, type_name,
|
||||
update_devices))
|
||||
|
||||
|
||||
Reference in new issue
Block a user