mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Better scene handling (#10213)
This commit is contained in:
parent
ffc2541ba5
commit
417240ee3e
@ -287,6 +287,11 @@ def parse_hue_api_put_light_body(request_json, entity):
|
|||||||
report_brightness = True
|
report_brightness = True
|
||||||
result = (brightness > 0)
|
result = (brightness > 0)
|
||||||
|
|
||||||
|
elif entity.domain == "scene":
|
||||||
|
brightness = None
|
||||||
|
report_brightness = False
|
||||||
|
result = True
|
||||||
|
|
||||||
elif (entity.domain == "script" or
|
elif (entity.domain == "script" or
|
||||||
entity.domain == "media_player" or
|
entity.domain == "media_player" or
|
||||||
entity.domain == "fan"):
|
entity.domain == "fan"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user