(hass: HomeAssistant)
Set up notifiers.
Set up notifiers.
Set up notifiers .
def async_setup_notifier(hass: HomeAssistant):
    """Set up notifiers."""
    async def state_change_listener(event: Event):
        await asyncio.gather(*[n.async_event_handler(event) for n in hass.data[DOMAIN][NOTIFIERS]])

    hass.bus.async_listen(EVENT_STATE_CHANGED, state_change_listener)
def async_setup_notifier ( hass : HomeAssistant ) : async def state_change_listener ( event : Event ) : await asyncio . gather ( * [ n . async_event_handler ( event ) for n in hass . data [ DOMAIN ] [ NOTIFIERS ] ] ) hass . bus . async_listen ( EVENT_STATE_CHANGED , state_change_listener )