Avoid submenu exception on HA restart
This commit is contained in:
1 parent
07b7c7d28c
commit
680553130e
1 file changed
+3
-1
+3
-1
@@ -411,7 +411,9 @@ export function refreshDynamicStateParameters(
|
||||
params.state_color || (domain === 'light' && params.state_color !== false)
|
||||
? domain
|
||||
: undefined;
|
||||
params.data_state = computeActiveState(state);
|
||||
if (state) {
|
||||
params.data_state = computeActiveState(state);
|
||||
}
|
||||
return params;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user