Black
This commit is contained in:
parent
da05dfe708
commit
4de97abc3a
2676 changed files with 163166 additions and 140084 deletions
|
@ -24,13 +24,14 @@ class AlarmDecoderSensor(Entity):
|
|||
"""Initialize the alarm panel."""
|
||||
self._display = ""
|
||||
self._state = None
|
||||
self._icon = 'mdi:alarm-check'
|
||||
self._name = 'Alarm Panel Display'
|
||||
self._icon = "mdi:alarm-check"
|
||||
self._name = "Alarm Panel Display"
|
||||
|
||||
async def async_added_to_hass(self):
|
||||
"""Register callbacks."""
|
||||
self.hass.helpers.dispatcher.async_dispatcher_connect(
|
||||
SIGNAL_PANEL_MESSAGE, self._message_callback)
|
||||
SIGNAL_PANEL_MESSAGE, self._message_callback
|
||||
)
|
||||
|
||||
def _message_callback(self, message):
|
||||
if self._display != message.text:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue