1 """Support for AlarmDecoder sensors (Shows Panel Display)."""
8 from .
import AlarmDecoderConfigEntry
9 from .const
import SIGNAL_PANEL_MESSAGE
10 from .entity
import AlarmDecoderEntity
15 entry: AlarmDecoderConfigEntry,
16 async_add_entities: AddEntitiesCallback,
18 """Set up for AlarmDecoder sensor."""
25 """Representation of an AlarmDecoder keypad."""
27 _attr_translation_key =
"alarm_panel_display"
28 _attr_name =
"Alarm Panel Display"
29 _attr_should_poll =
False
32 """Initialize the alarm decoder sensor."""
37 """Register callbacks."""
def __init__(self, client)
None async_added_to_hass(self)
def _message_callback(self, message)
None async_on_remove(self, CALLBACK_TYPE func)
None schedule_update_ha_state(self, bool force_refresh=False)
None async_setup_entry(HomeAssistant hass, AlarmDecoderConfigEntry entry, AddEntitiesCallback async_add_entities)
Callable[[], None] async_dispatcher_connect(HomeAssistant hass, str signal, Callable[..., Any] target)