Skip to content

Commit 6f7be86

Browse files
committed
Change names for Platform combinations
1 parent 826f8ce commit 6f7be86

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

custom_components/plugwise-beta/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
_LOGGER = logging.getLogger(__name__)
2121

22-
PLATFORMS_1 = ["sensor"]
23-
PLATFORMS_2 = ["binary_sensor", "climate", "sensor", "switch"]
24-
PLATFORMS_3 = ["binary_sensor", "climate", "sensor", "switch", "water_heater"]
22+
SENSORS = ["sensor"]
23+
CLIMATE = ["binary_sensor", "climate", "sensor", "switch"]
24+
MULTI = ["binary_sensor", "climate", "sensor", "switch", "water_heater"]
2525

2626
async def async_setup(hass: HomeAssistant, config: dict):
2727
"""Set up the Plugwise platform."""
@@ -70,11 +70,11 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
7070
_LOGGER.debug("Single master thermostat = %s", single_master_thermostat)
7171
if single_master_thermostat is not None:
7272
if single_master_thermostat == True:
73-
PLATFORMS = PLATFORMS_2
73+
PLATFORMS = CLIMATE
7474
else:
75-
PLATFORMS = PLATFORMS_3
75+
PLATFORMS = MULTI
7676
else:
77-
PLATFORMS = PLATFORMS_1
77+
PLATFORMS = SENSORS
7878

7979
for component in PLATFORMS:
8080
hass.async_create_task(

0 commit comments

Comments
 (0)