def is_on(hass, entity_id):
    return hass.states.is_state(entity_id, STATE_ON)
Constructor for Text
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/input_boolean.py/is_on--crossover with--dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/atom/__init__.py/Text.__init__