integration/homeassistant/custom_components/openaliro/event.py
openaliro/openaliro
Module
event.py
Access outcome event entity for the HA=1 OpenAliro direct integration.
Overview
Access outcome event entity for the HA=1 OpenAliro direct integration.
depends on const.py runtime.py
API
Fasync_setup_entry(hass: HomeAssistant, entry: ConfigEntry[OpenAliroRuntime], async_add_entities: AddEntitiesCallback) -> None
integration/homeassistant/custom_components/openaliro/event.py:13
Create the credential-free access event entity.
calls
OpenAliroAccessEventCclass OpenAliroAccessEvent(EventEntity)
integration/homeassistant/custom_components/openaliro/event.py:21
Emit exactly the granted and denied outcomes parsed by the shared library.
called by
async_setup_entryFOpenAliroAccessEvent.__init__(self, runtime: OpenAliroRuntime) -> None
integration/homeassistant/custom_components/openaliro/event.py:29
Initialize the access event entity with the runtime reference and a unique ID derived from the device ID.
FOpenAliroAccessEvent.available(self) -> bool
integration/homeassistant/custom_components/openaliro/event.py:36
Return the runtime availability (true if the connection is up).
FOpenAliroAccessEvent.device_info(self) -> DeviceInfo
integration/homeassistant/custom_components/openaliro/event.py:41
Return device metadata linking this entity to the OpenAliro device.
FOpenAliroAccessEvent.async_added_to_hass(self) -> None
integration/homeassistant/custom_components/openaliro/event.py:45
Register a listener callback that publishes the last access verdict as a Home Assistant event when the runtime changes state.
FOpenAliroAccessEvent.async_will_remove_from_hass(self) -> None
integration/homeassistant/custom_components/openaliro/event.py:57
Unregister the listener callback on entity removal.
Undocumented (1)
OpenAliroAccessEvent.update