1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 12:49:19 +00:00
Files
frontend/js/common/entity/compute_domain.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

4 lines
104 B
JavaScript

export default function computeDomain(entityId) {
return entityId.substr(0, entityId.indexOf('.'));
}