Pylint cleanups (#15626)
* Pylint 2 no-else-return fixes * Remove unneeded abstract-class-not-used pylint disable
This commit is contained in:
1 parent
a38c0d6d15
commit
b7c336a687
166 files changed
+425
-490
No files matched your search
@@ -255,7 +255,7 @@ class DSMREntity(Entity):
|
||||
return ICON_POWER_FAILURE
|
||||
if 'Power' in self._name:
|
||||
return ICON_POWER
|
||||
elif 'Gas' in self._name:
|
||||
if 'Gas' in self._name:
|
||||
return ICON_GAS
|
||||
|
||||
@property
|
||||
@@ -285,7 +285,7 @@ class DSMREntity(Entity):
|
||||
# used for normal rate.
|
||||
if value == '0002':
|
||||
return 'normal'
|
||||
elif value == '0001':
|
||||
if value == '0001':
|
||||
return 'low'
|
||||
|
||||
return STATE_UNKNOWN
|
||||
|
||||
Reference in new issue
Block a user