mirror of
https://github.com/home-assistant/core.git
synced 2025-12-20 02:48:57 +00:00
17 lines
520 B
Python
17 lines
520 B
Python
"""Provides triggers for update platform."""
|
|
|
|
from homeassistant.const import STATE_ON
|
|
from homeassistant.core import HomeAssistant
|
|
from homeassistant.helpers.trigger import Trigger, make_entity_target_state_trigger
|
|
|
|
from .const import DOMAIN
|
|
|
|
TRIGGERS: dict[str, type[Trigger]] = {
|
|
"update_became_available": make_entity_target_state_trigger(DOMAIN, STATE_ON),
|
|
}
|
|
|
|
|
|
async def async_get_triggers(hass: HomeAssistant) -> dict[str, type[Trigger]]:
|
|
"""Return the triggers for update platform."""
|
|
return TRIGGERS
|