Rename Shelly SENSORS to BLOCK_SENSORS to match naming in other platforms (#157553)

This commit is contained in:
Shay Levy
2025-11-30 12:48:35 +02:00
committed by GitHub
parent e328ba4045
commit 6357067f0f
2 changed files with 6 additions and 6 deletions

View File

@@ -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(

View File

@@ -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(