Classes | |
| class | TodSensor |
Functions | |
| TypeGuard[SunEventType] | _is_sun_event (time|SunEventType sun_event) |
| None | async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities) |
| None | async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| string | ATTR_AFTER = "after" |
| string | ATTR_BEFORE = "before" |
| string | ATTR_NEXT_UPDATE = "next_update" |
| PLATFORM_SCHEMA | |
| SunEventType | |
Support for representing current time of the day as binary sensors.
|
private |
Return true if event is sun event not time.
Definition at line 103 of file binary_sensor.py.
| None homeassistant.components.tod.binary_sensor.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | config_entry, | ||
| AddEntitiesCallback | async_add_entities | ||
| ) |
Initialize Times of the Day config entry.
Definition at line 59 of file binary_sensor.py.
| None homeassistant.components.tod.binary_sensor.async_setup_platform | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| AddEntitiesCallback | async_add_entities, | ||
| DiscoveryInfoType | None | discovery_info = None |
||
| ) |
Set up the ToD sensors.
Definition at line 81 of file binary_sensor.py.
|
private |
Definition at line 41 of file binary_sensor.py.
| string homeassistant.components.tod.binary_sensor.ATTR_AFTER = "after" |
Definition at line 43 of file binary_sensor.py.
| string homeassistant.components.tod.binary_sensor.ATTR_BEFORE = "before" |
Definition at line 44 of file binary_sensor.py.
| string homeassistant.components.tod.binary_sensor.ATTR_NEXT_UPDATE = "next_update" |
Definition at line 45 of file binary_sensor.py.
| homeassistant.components.tod.binary_sensor.PLATFORM_SCHEMA |
Definition at line 47 of file binary_sensor.py.
| homeassistant.components.tod.binary_sensor.SunEventType |
Definition at line 39 of file binary_sensor.py.