Skip to content

Commit d9168d6

Browse files
author
Tom Scholten
committed
Initial diff for sensor against #home-assistant#33691
1 parent efec62d commit d9168d6

File tree

2 files changed

+458
-0
lines changed

2 files changed

+458
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
)

0 commit comments

Comments
 (0)