frontend/js/common/entity/valid_entity_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

4 lines
94 B
JavaScript

export default function validEntityId(entityId) {
return /^(\w+)\.(\w+)$/.test(entityId);
}