Pylint 2 fixes (#15487)
* pylint 2 inline disable syntax fixes * pylint 2 logging-not-lazy fixes * pylint 2 consider-using-in fixes * Revert pylint 2 inline disable syntax fixes addressing unused-imports Will have a go at removing more unused imports altogether first.
This commit is contained in:
1 parent
d2f4bce6c0
commit
e31dd4404e
33 files changed
+55
-73
No files matched your search
@@ -86,8 +86,8 @@ class IOSSensor(Entity):
|
||||
battery_level = device_battery[ios.ATTR_BATTERY_LEVEL]
|
||||
charging = True
|
||||
icon_state = DEFAULT_ICON_STATE
|
||||
if (battery_state == ios.ATTR_BATTERY_STATE_FULL or
|
||||
battery_state == ios.ATTR_BATTERY_STATE_UNPLUGGED):
|
||||
if battery_state in (ios.ATTR_BATTERY_STATE_FULL,
|
||||
ios.ATTR_BATTERY_STATE_UNPLUGGED):
|
||||
charging = False
|
||||
icon_state = "{}-off".format(DEFAULT_ICON_STATE)
|
||||
elif battery_state == ios.ATTR_BATTERY_STATE_UNKNOWN:
|
||||
|
||||
Reference in new issue
Block a user