mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 07:24:24 +01:00
Update pages.py
This commit is contained in:
@@ -637,7 +637,7 @@ class LuiPagesGen(object):
|
|||||||
icon_color = self.get_entity_color(entity)
|
icon_color = self.get_entity_color(entity)
|
||||||
speed = entity.attributes.get("percentage")
|
speed = entity.attributes.get("percentage")
|
||||||
speedMax = 100
|
speedMax = 100
|
||||||
if(speed == None):
|
if(speed is None):
|
||||||
speed = "disable"
|
speed = "disable"
|
||||||
else:
|
else:
|
||||||
speed = round(entity.attributes.get("percentage")/entity.attributes.get("percentage_step"))
|
speed = round(entity.attributes.get("percentage")/entity.attributes.get("percentage_step"))
|
||||||
|
|||||||
Reference in New Issue
Block a user