mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 10:05:26 +01:00
Rename Shelly SENSORS to BLOCK_SENSORS to match naming in other platforms (#157553)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user