diff --git a/homeassistant/components/shelly/binary_sensor.py b/homeassistant/components/shelly/binary_sensor.py index c69ef7ba3d9..b85baa1a630 100644 --- a/homeassistant/components/shelly/binary_sensor.py +++ b/homeassistant/components/shelly/binary_sensor.py @@ -127,7 +127,7 @@ class RpcBluTrvBinarySensor(RpcBinarySensor): ) -SENSORS: dict[tuple[str, str], BlockBinarySensorDescription] = { +BLOCK_SENSORS: dict[tuple[str, str], BlockBinarySensorDescription] = { ("device", "overtemp"): BlockBinarySensorDescription( key="device|overtemp", translation_key="overheating", @@ -376,7 +376,7 @@ def _async_setup_block_entry( hass, config_entry, async_add_entities, - SENSORS, + BLOCK_SENSORS, BlockSleepingBinarySensor, ) else: @@ -384,7 +384,7 @@ def _async_setup_block_entry( hass, config_entry, async_add_entities, - SENSORS, + BLOCK_SENSORS, BlockBinarySensor, ) async_setup_entry_rest( diff --git a/homeassistant/components/shelly/sensor.py b/homeassistant/components/shelly/sensor.py index 65974bf67fd..aa51fb1d443 100644 --- a/homeassistant/components/shelly/sensor.py +++ b/homeassistant/components/shelly/sensor.py @@ -198,7 +198,7 @@ class RpcBluTrvSensor(RpcSensor): ) -SENSORS: dict[tuple[str, str], BlockSensorDescription] = { +BLOCK_SENSORS: dict[tuple[str, str], BlockSensorDescription] = { ("device", "battery"): BlockSensorDescription( key="device|battery", native_unit_of_measurement=PERCENTAGE, @@ -1740,7 +1740,7 @@ def _async_setup_block_entry( hass, config_entry, async_add_entities, - SENSORS, + BLOCK_SENSORS, BlockSleepingSensor, ) else: @@ -1748,7 +1748,7 @@ def _async_setup_block_entry( hass, config_entry, async_add_entities, - SENSORS, + BLOCK_SENSORS, BlockSensor, ) async_setup_entry_rest(