Skip to content

Commit

Permalink
Re-add binary_sensor attribute for AlarmDecoder that was inadverten…
Browse files Browse the repository at this point in the history
…tly removed (#62351)
  • Loading branch information
ajschmidt8 authored Dec 19, 2021
1 parent b77fc2e commit 3c913d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions homeassistant/components/alarmdecoder/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ def __init__(
self._relay_addr = relay_addr
self._relay_chan = relay_chan
self._attr_device_class = zone_type
self._attr_extra_state_attributes = {
CONF_ZONE_NUMBER: self._zone_number,
}

async def async_added_to_hass(self):
"""Register callbacks."""
Expand Down

0 comments on commit 3c913d4

Please sign in to comment.