File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
zhaquirks/schneiderelectric Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 55from zigpy .quirks import CustomCluster
66from zigpy .quirks .v2 import EntityType , QuirkBuilder
77from zigpy .quirks .v2 .homeassistant import (
8+ PERCENTAGE ,
89 EntityPlatform ,
910 UnitOfPower ,
1011 UnitOfTemperature ,
@@ -597,7 +598,7 @@ class AttributeDefs(CustomCluster.AttributeDefs):
597598 attribute_name = SEUserInterface .AttributeDefs .se_brightness .name ,
598599 translation_key = "display_brightness" ,
599600 fallback_name = "Display brightness" ,
600- # unit="%" ,
601+ unit = PERCENTAGE ,
601602 min_value = 0 ,
602603 max_value = 100 ,
603604 step = 1 ,
@@ -608,7 +609,7 @@ class AttributeDefs(CustomCluster.AttributeDefs):
608609 attribute_name = SEUserInterface .AttributeDefs .se_inactive_brightness .name ,
609610 translation_key = "display_inactive_brightness" ,
610611 fallback_name = "Display inactive brightness" ,
611- # unit="%" ,
612+ unit = PERCENTAGE ,
612613 min_value = 0 ,
613614 max_value = 100 ,
614615 step = 1 ,
You can’t perform that action at this time.
0 commit comments