Fix bad battery sense in ambient_station (#87668)

This commit is contained in:
John Pettitt 2023-02-09 01:36:05 -08:00 committed by Paulus Schoutsen
parent 09970a083b
commit 8780db82e5

View File

@ -168,28 +168,28 @@ BINARY_SENSOR_DESCRIPTIONS = (
name="Leak detector battery 1",
device_class=BinarySensorDeviceClass.BATTERY,
entity_category=EntityCategory.DIAGNOSTIC,
on_state=0,
on_state=1,
),
AmbientBinarySensorDescription(
key=TYPE_BATT_LEAK2,
name="Leak detector battery 2",
device_class=BinarySensorDeviceClass.BATTERY,
entity_category=EntityCategory.DIAGNOSTIC,
on_state=0,
on_state=1,
),
AmbientBinarySensorDescription(
key=TYPE_BATT_LEAK3,
name="Leak detector battery 3",
device_class=BinarySensorDeviceClass.BATTERY,
entity_category=EntityCategory.DIAGNOSTIC,
on_state=0,
on_state=1,
),
AmbientBinarySensorDescription(
key=TYPE_BATT_LEAK4,
name="Leak detector battery 4",
device_class=BinarySensorDeviceClass.BATTERY,
entity_category=EntityCategory.DIAGNOSTIC,
on_state=0,
on_state=1,
),
AmbientBinarySensorDescription(
key=TYPE_BATT_SM1,
@ -273,7 +273,7 @@ BINARY_SENSOR_DESCRIPTIONS = (
name="Lightning detector battery",
device_class=BinarySensorDeviceClass.BATTERY,
entity_category=EntityCategory.DIAGNOSTIC,
on_state=0,
on_state=1,
),
AmbientBinarySensorDescription(
key=TYPE_LEAK1,