mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
2022.5 fixes
This commit is contained in:
@@ -3,7 +3,8 @@ v3_button_purifier:
|
||||
state_display: |
|
||||
[[[
|
||||
if (entity.state === 'off') { return 'Off'; }
|
||||
return entity.attributes.speed.charAt(0).toUpperCase() + entity.attributes.speed.slice(1);
|
||||
if (!entity.attributes.preset_mode) { return 'Unknown preset'; }
|
||||
return entity.attributes.preset_mode.charAt(0).toUpperCase() + entity.attributes.preset_mode.slice(1);
|
||||
]]]
|
||||
variables:
|
||||
value_has_error: |
|
||||
|
||||
Reference in New Issue
Block a user