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