Move Screenlogic lights to the light platform (#55467)
Co-authored-by: Kevin Worrel <37058192+dieselrabbit@users.noreply.github.com>
This commit is contained in:
parent
18ce799f74
commit
20c35e6032
9 changed files with 107 additions and 59 deletions
|
@ -37,7 +37,7 @@ SUPPORTED_PRESETS = [
|
|||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
"""Set up entry."""
|
||||
entities = []
|
||||
coordinator = hass.data[DOMAIN][config_entry.entry_id]["coordinator"]
|
||||
coordinator = hass.data[DOMAIN][config_entry.entry_id]
|
||||
|
||||
for body in coordinator.data[SL_DATA.KEY_BODIES]:
|
||||
entities.append(ScreenLogicClimate(coordinator, body))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue