1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00
This commit is contained in:
Paulus Schoutsen
2015-08-23 01:26:31 -07:00
parent f1bad9e5f6
commit a35d569e22
32 changed files with 756 additions and 135 deletions

9
src/util/can-toggle.js Normal file
View File

@@ -0,0 +1,9 @@
import {
reactor,
serviceGetters
} from '../util/home-assistant-js-instance';
// Return boolean if entity can be toggled.
export default function canToggle(entityId) {
return reactor.evaluate(serviceGetters.canToggleEntity(entityId));
}