1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00
Files
frontend/src/util/can-toggle.js
2015-09-24 07:59:37 -07:00

10 lines
239 B
JavaScript

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