mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 15:31:52 -05:00
Fix binary sensor defaults for Indevolt (#172714)
This commit is contained in:
@@ -25,8 +25,8 @@ PARALLEL_UPDATES = 0
|
||||
class IndevoltBinarySensorEntityDescription(BinarySensorEntityDescription):
|
||||
"""Custom entity description class for Indevolt binary sensors."""
|
||||
|
||||
on_value: int = 1
|
||||
off_value: int = 0
|
||||
on_value: int = 1000
|
||||
off_value: int = 1001
|
||||
generation: tuple[int, ...] = (1, 2)
|
||||
|
||||
|
||||
@@ -35,8 +35,6 @@ BINARY_SENSORS: Final = (
|
||||
IndevoltBinarySensorEntityDescription(
|
||||
key=IndevoltGrid.METER_CONNECTED,
|
||||
translation_key="meter_connected",
|
||||
on_value=1000,
|
||||
off_value=1001,
|
||||
device_class=BinarySensorDeviceClass.CONNECTIVITY,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
entity_registry_enabled_default=False,
|
||||
@@ -46,8 +44,6 @@ BINARY_SENSORS: Final = (
|
||||
key=IndevoltSystem.HEATING_STATE,
|
||||
generation=(1,),
|
||||
translation_key="electric_heating_state",
|
||||
on_value=1000,
|
||||
off_value=1001,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
|
||||
@@ -24,12 +24,12 @@
|
||||
"6006": 380.58,
|
||||
"6007": 338.07,
|
||||
"7120": 1001,
|
||||
"9080": 1,
|
||||
"9096": 1,
|
||||
"9112": 0,
|
||||
"9128": 1,
|
||||
"9144": 0,
|
||||
"9279": 1,
|
||||
"9080": 1000,
|
||||
"9096": 1000,
|
||||
"9112": 1001,
|
||||
"9128": 1000,
|
||||
"9144": 1001,
|
||||
"9279": 1000,
|
||||
"11016": 0,
|
||||
"2600": 1200,
|
||||
"2612": 50.0,
|
||||
|
||||
@@ -136,15 +136,15 @@
|
||||
'9058': 51.1,
|
||||
'9068': 25.0,
|
||||
'9070': '**REDACTED**',
|
||||
'9080': 1,
|
||||
'9080': 1000,
|
||||
'9085': 31.5,
|
||||
'9096': 1,
|
||||
'9096': 1000,
|
||||
'9101': 32.8,
|
||||
'9112': 0,
|
||||
'9112': 1001,
|
||||
'9117': 31.9,
|
||||
'9128': 1,
|
||||
'9128': 1000,
|
||||
'9133': 33.0,
|
||||
'9144': 0,
|
||||
'9144': 1001,
|
||||
'9149': 94,
|
||||
'9152': 125,
|
||||
'9153': 51.4,
|
||||
@@ -156,7 +156,7 @@
|
||||
'9216': 24.9,
|
||||
'9218': '**REDACTED**',
|
||||
'9270': 31.2,
|
||||
'9279': 1,
|
||||
'9279': 1000,
|
||||
}),
|
||||
'device': dict({
|
||||
'firmware_version': '1.2.3',
|
||||
|
||||
Reference in New Issue
Block a user