mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 06:44:04 +02:00
Use variable
This commit is contained in:
parent
60179cbe38
commit
f198071584
1 changed files with 3 additions and 1 deletions
|
|
@ -120,7 +120,9 @@ async def setup_switch(hass, extra_data):
|
|||
|
||||
async def setup_lights(hass):
|
||||
"""Set up 3 light entities using the 'test' platform."""
|
||||
await async_setup_component(hass, "light", {"light": {"platform": "demo"}})
|
||||
await async_setup_component(
|
||||
hass, LIGHT_DOMAIN, {LIGHT_DOMAIN: {"platform": "demo"}}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
platform = getattr(hass.components, "test.light")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue