Home Assistant Unofficial Reference 2024.12.1
helpers.py
Go to the documentation of this file.
1 """Helpers for philips_js."""
2 
3 from homeassistant.const import CONF_DEVICE_ID, CONF_DOMAIN, CONF_PLATFORM, CONF_TYPE
4 
5 from .const import DOMAIN, TRIGGER_TYPE_TURN_ON
6 
7 
8 def async_get_turn_on_trigger(device_id: str) -> dict[str, str]:
9  """Return trigger description for a turn on trigger."""
10 
11  return {
12  CONF_PLATFORM: "device",
13  CONF_DEVICE_ID: device_id,
14  CONF_DOMAIN: DOMAIN,
15  CONF_TYPE: TRIGGER_TYPE_TURN_ON,
16  }
dict[str, str] async_get_turn_on_trigger(str device_id)
Definition: helpers.py:8