mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Fix Shelly dual mode bulb mode switch (#60471)
* fix_shelly_dual_mode_bulb_mode_switch * Update __init__.py * Update light.py
This commit is contained in:
parent
6d08bee3df
commit
1aadda4b0f
@ -366,7 +366,11 @@ class BlockShellyLight(ShellyBlockEntity, LightEntity):
|
|||||||
self.wrapper.model,
|
self.wrapper.model,
|
||||||
)
|
)
|
||||||
|
|
||||||
if set_mode and self.wrapper.model in DUAL_MODE_LIGHT_MODELS:
|
if (
|
||||||
|
set_mode
|
||||||
|
and set_mode != self.mode
|
||||||
|
and self.wrapper.model in DUAL_MODE_LIGHT_MODELS
|
||||||
|
):
|
||||||
params["mode"] = set_mode
|
params["mode"] = set_mode
|
||||||
|
|
||||||
self.control_result = await self.set_state(**params)
|
self.control_result = await self.set_state(**params)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user