diff --git a/homeassistant/components/indevolt/binary_sensor.py b/homeassistant/components/indevolt/binary_sensor.py index 1be4bf6364a5..2e372d35a032 100644 --- a/homeassistant/components/indevolt/binary_sensor.py +++ b/homeassistant/components/indevolt/binary_sensor.py @@ -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, ), diff --git a/tests/components/indevolt/fixtures/gen_2.json b/tests/components/indevolt/fixtures/gen_2.json index e33ca3ca4091..323307c038d3 100644 --- a/tests/components/indevolt/fixtures/gen_2.json +++ b/tests/components/indevolt/fixtures/gen_2.json @@ -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, diff --git a/tests/components/indevolt/snapshots/test_diagnostics.ambr b/tests/components/indevolt/snapshots/test_diagnostics.ambr index 8797eeeedeaa..e9204025047f 100644 --- a/tests/components/indevolt/snapshots/test_diagnostics.ambr +++ b/tests/components/indevolt/snapshots/test_diagnostics.ambr @@ -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',