mirror of
https://github.com/home-assistant/frontend.git
synced 2025-06-29 05:26:34 +00:00
5 lines
148 B
JavaScript
5 lines
148 B
JavaScript
/** Compute the object ID of a state. */
|
|
export default function computeObjectId(entityId) {
|
|
return entityId.substr(entityId.indexOf('.') + 1);
|
|
}
|