frontend/js/common/entity/compute_object_id.js
Paulus Schoutsen 912969111f
Move all of hassUtil to JS (#1153)
* Move all of hassUtil to JS

* Fix tests
2018-05-09 21:33:31 -04:00

5 lines
148 B
JavaScript

/** Compute the object ID of a state. */
export default function computeObjectId(entityId) {
return entityId.substr(entityId.indexOf('.') + 1);
}