Set keyword arguments in DemoLight (#42040)

I noticed that the signature was very hard to read when working on https://github.com/home-assistant/core/pull/40626.
pull/42052/head
Bas Nijholt 2020-10-18 20:57:35 +02:00 committed by GitHub
parent 22b360a10e
commit 2604bf59ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 6 deletions

View File

@ -33,16 +33,27 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
async_add_entities( async_add_entities(
[ [
DemoLight( DemoLight(
"light_1", unique_id="light_1",
"Bed Light", name="Bed Light",
False, state=False,
True, available=True,
effect_list=LIGHT_EFFECT_LIST, effect_list=LIGHT_EFFECT_LIST,
effect=LIGHT_EFFECT_LIST[0], effect=LIGHT_EFFECT_LIST[0],
), ),
DemoLight("light_2", "Ceiling Lights", True, True, ct=LIGHT_TEMPS[1]),
DemoLight( DemoLight(
"light_3", "Kitchen Lights", True, True, LIGHT_COLORS[1], LIGHT_TEMPS[0] unique_id="light_2",
name="Ceiling Lights",
state=True,
available=True,
ct=LIGHT_TEMPS[1],
),
DemoLight(
unique_id="light_3",
name="Kitchen Lights",
state=True,
available=True,
hs_color=LIGHT_COLORS[1],
ct=LIGHT_TEMPS[0],
), ),
] ]
) )