import { HassEntity } from "home-assistant-js-websocket" ; export const supportsFeature = ( stateObj , feature ) : boolean => { return ( stateObj . attributes . supported_features ! & feature ) !== 0 ; } ;