mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 01:14:42 +00:00
Refactor entity choosing
This commit is contained in:
@@ -21,9 +21,7 @@ with_state_indicator:
|
||||
- border-bottom: >-
|
||||
[[[
|
||||
let color;
|
||||
const state_indicator = (!variables.state_indicator_id)
|
||||
? entity.entity_id
|
||||
: variables.state_indicator_id;
|
||||
const state_indicator = variables.state_indicator_id || entity.entity_id;
|
||||
|
||||
if (entity.state === 'on') {
|
||||
color = states[state_indicator].state === 'on'
|
||||
|
||||
Reference in New Issue
Block a user