Better scene handling (#10213)
This commit is contained in:
parent
ffc2541ba5
commit
417240ee3e
1 changed files with 5 additions and 0 deletions
|
@ -287,6 +287,11 @@ def parse_hue_api_put_light_body(request_json, entity):
|
|||
report_brightness = True
|
||||
result = (brightness > 0)
|
||||
|
||||
elif entity.domain == "scene":
|
||||
brightness = None
|
||||
report_brightness = False
|
||||
result = True
|
||||
|
||||
elif (entity.domain == "script" or
|
||||
entity.domain == "media_player" or
|
||||
entity.domain == "fan"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue