Skip to content

Commit c26ac8c

Browse files
authored
Merge pull request #121 from apetrycki/onelite
add support for onelite and add some bug/deprecation fixes
2 parents dd656a6 + 56fe9aa commit c26ac8c

14 files changed

+95
-42
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# daikinskyport
2-
API and [Home Assistant](https://www.home-assistant.io/) component for accessing a [Daikin One+ Smart Thermostat](https://daikinone.com/).
2+
API and [Home Assistant](https://www.home-assistant.io/) component for accessing a [Daikin One+ Smart Thermostat](https://daikinone.com/) or [Daikin One Lite](https://www.daikinac.com/content/residential/residential-controllers/daikin-one-lite).
33

4-
This is currently a work in progress but most functions are supported. Now welcoming feedback for features and bugs. This was mostly taken from the ecobee code and modified.
4+
Most functions are supported. Now welcoming feedback for features and bugs. This was mostly taken from the ecobee code and modified.
55

66
## Installation
77

custom_components/daikinskyport/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,19 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
9090
# entry.async_on_unload(entry.add_update_listener(update_listener))
9191

9292

93-
hass.async_create_task(hass.config_entries.async_forward_entry_setups(entry, PLATFORMS))
93+
for platform in PLATFORMS:
94+
if entry.options.get(platform, True):
95+
coordinator.platforms.append(platform)
9496

9597
undo_listener = entry.add_update_listener(update_listener)
9698

9799
hass.data[DOMAIN][entry.entry_id] = {
98100
COORDINATOR: coordinator,
99101
UNDO_UPDATE_LISTENER: undo_listener
100102
}
103+
104+
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
105+
101106
return True
102107

103108
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1.79 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-4.91 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)