Fix pylint 1.7.2 no-else-return issues (#8361)
* Fix pylint 1.7.2 no-else-return issues * Update tomato.py
This commit is contained in:
1 parent
5779d64e98
commit
46e030662d
111 files changed
+305
-455
No files matched your search
@@ -254,8 +254,7 @@ class WUAlertsSensorConfig(WUSensorConfig):
|
||||
feature="alerts",
|
||||
value=lambda wu: len(wu.data['alerts']),
|
||||
icon=lambda wu: "mdi:alert-circle-outline"
|
||||
if len(wu.data['alerts']) > 0
|
||||
else "mdi:check-circle-outline",
|
||||
if wu.data['alerts'] else "mdi:check-circle-outline",
|
||||
device_state_attributes=self._get_attributes
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user