mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
parent
e649d37c05
commit
d96c5f6bde
@ -1,9 +1,5 @@
|
|||||||
import computeDomain from './compute_domain.js';
|
import computeDomain from './compute_domain.js';
|
||||||
|
|
||||||
export default function computeStateDomain(stateObj) {
|
export default function computeStateDomain(stateObj) {
|
||||||
if (!stateObj._domain) {
|
return computeDomain(stateObj.entity_id);
|
||||||
stateObj._domain = computeDomain(stateObj.entity_id);
|
|
||||||
}
|
|
||||||
|
|
||||||
return stateObj._domain;
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user