mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix bad battery sense in ambient_station (#87668)
This commit is contained in:
parent
14c19a2456
commit
59890cca68
@ -168,28 +168,28 @@ BINARY_SENSOR_DESCRIPTIONS = (
|
|||||||
name="Leak detector battery 1",
|
name="Leak detector battery 1",
|
||||||
device_class=BinarySensorDeviceClass.BATTERY,
|
device_class=BinarySensorDeviceClass.BATTERY,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
on_state=0,
|
on_state=1,
|
||||||
),
|
),
|
||||||
AmbientBinarySensorDescription(
|
AmbientBinarySensorDescription(
|
||||||
key=TYPE_BATT_LEAK2,
|
key=TYPE_BATT_LEAK2,
|
||||||
name="Leak detector battery 2",
|
name="Leak detector battery 2",
|
||||||
device_class=BinarySensorDeviceClass.BATTERY,
|
device_class=BinarySensorDeviceClass.BATTERY,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
on_state=0,
|
on_state=1,
|
||||||
),
|
),
|
||||||
AmbientBinarySensorDescription(
|
AmbientBinarySensorDescription(
|
||||||
key=TYPE_BATT_LEAK3,
|
key=TYPE_BATT_LEAK3,
|
||||||
name="Leak detector battery 3",
|
name="Leak detector battery 3",
|
||||||
device_class=BinarySensorDeviceClass.BATTERY,
|
device_class=BinarySensorDeviceClass.BATTERY,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
on_state=0,
|
on_state=1,
|
||||||
),
|
),
|
||||||
AmbientBinarySensorDescription(
|
AmbientBinarySensorDescription(
|
||||||
key=TYPE_BATT_LEAK4,
|
key=TYPE_BATT_LEAK4,
|
||||||
name="Leak detector battery 4",
|
name="Leak detector battery 4",
|
||||||
device_class=BinarySensorDeviceClass.BATTERY,
|
device_class=BinarySensorDeviceClass.BATTERY,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
on_state=0,
|
on_state=1,
|
||||||
),
|
),
|
||||||
AmbientBinarySensorDescription(
|
AmbientBinarySensorDescription(
|
||||||
key=TYPE_BATT_SM1,
|
key=TYPE_BATT_SM1,
|
||||||
@ -273,7 +273,7 @@ BINARY_SENSOR_DESCRIPTIONS = (
|
|||||||
name="Lightning detector battery",
|
name="Lightning detector battery",
|
||||||
device_class=BinarySensorDeviceClass.BATTERY,
|
device_class=BinarySensorDeviceClass.BATTERY,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
on_state=0,
|
on_state=1,
|
||||||
),
|
),
|
||||||
AmbientBinarySensorDescription(
|
AmbientBinarySensorDescription(
|
||||||
key=TYPE_LEAK1,
|
key=TYPE_LEAK1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user