Initialize AlarmDecoder binary_sensor state as off instead of unknown (#65926)

This commit is contained in:
jjlawren 2022-02-18 15:32:04 -06:00 committed by GitHub
parent abc73ff2e1
commit cfd908218d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,6 +77,7 @@ class AlarmDecoderBinarySensor(BinarySensorEntity):
self._zone_number = int(zone_number)
self._zone_type = zone_type
self._attr_name = zone_name
self._attr_is_on = False
self._rfid = zone_rfid
self._loop = zone_loop
self._relay_addr = relay_addr