Skip to content

Commit 6357067

Browse files
authored
Rename Shelly SENSORS to BLOCK_SENSORS to match naming in other platforms (home-assistant#157553)
1 parent e328ba4 commit 6357067

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

homeassistant/components/shelly/binary_sensor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def __init__(
127127
)
128128

129129

130-
SENSORS: dict[tuple[str, str], BlockBinarySensorDescription] = {
130+
BLOCK_SENSORS: dict[tuple[str, str], BlockBinarySensorDescription] = {
131131
("device", "overtemp"): BlockBinarySensorDescription(
132132
key="device|overtemp",
133133
translation_key="overheating",
@@ -376,15 +376,15 @@ def _async_setup_block_entry(
376376
hass,
377377
config_entry,
378378
async_add_entities,
379-
SENSORS,
379+
BLOCK_SENSORS,
380380
BlockSleepingBinarySensor,
381381
)
382382
else:
383383
async_setup_entry_block(
384384
hass,
385385
config_entry,
386386
async_add_entities,
387-
SENSORS,
387+
BLOCK_SENSORS,
388388
BlockBinarySensor,
389389
)
390390
async_setup_entry_rest(

homeassistant/components/shelly/sensor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def __init__(
198198
)
199199

200200

201-
SENSORS: dict[tuple[str, str], BlockSensorDescription] = {
201+
BLOCK_SENSORS: dict[tuple[str, str], BlockSensorDescription] = {
202202
("device", "battery"): BlockSensorDescription(
203203
key="device|battery",
204204
native_unit_of_measurement=PERCENTAGE,
@@ -1740,15 +1740,15 @@ def _async_setup_block_entry(
17401740
hass,
17411741
config_entry,
17421742
async_add_entities,
1743-
SENSORS,
1743+
BLOCK_SENSORS,
17441744
BlockSleepingSensor,
17451745
)
17461746
else:
17471747
async_setup_entry_block(
17481748
hass,
17491749
config_entry,
17501750
async_add_entities,
1751-
SENSORS,
1751+
BLOCK_SENSORS,
17521752
BlockSensor,
17531753
)
17541754
async_setup_entry_rest(

0 commit comments

Comments
 (0)