File tree Expand file tree Collapse file tree 2 files changed +458
-0
lines changed
homeassistant/components/plugwise Expand file tree Collapse file tree 2 files changed +458
-0
lines changed Original file line number Diff line number Diff line change 1+ --- __init__.py.orig 2020-05-28 10:03:10.000000000 +0200
2+ +++ __init__.py.sensor 2020-05-28 10:08:09.000000000 +0200
3+ @@ -22,7 +22,8 @@
4+
5+ _LOGGER = logging.getLogger(__name__)
6+
7+ - ALL_PLATFORMS = ["climate"]
8+ + SENSOR_PLATFORMS = ["sensor"]
9+ + ALL_PLATFORMS = ["climate", "sensor"]
10+
11+
12+ async def async_setup(hass: HomeAssistant, config: dict):
13+ @@ -100,7 +101,13 @@
14+ sw_version=api.smile_version[0],
15+ )
16+
17+ - for component in ALL_PLATFORMS:
18+ + platforms = ALL_PLATFORMS
19+ +
20+ + single_master_thermostat = api.single_master_thermostat()
21+ + if single_master_thermostat is None:
22+ + platforms = SENSOR_PLATFORMS
23+ +
24+ + for component in platforms:
25+ hass.async_create_task(
26+ hass.config_entries.async_forward_entry_setup(entry, component)
27+ )
You can’t perform that action at this time.
0 commit comments