Update pages.py

This commit is contained in:
joBr99
2022-08-03 17:19:19 +02:00
committed by GitHub
parent 6213b754dd
commit 5dd8cd8904

View File

@@ -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"))