fix lights
This commit is contained in:
parent
c7958d82fa
commit
de9a6a21be
|
@ -126,9 +126,4 @@ func quick_action():
|
||||||
_toggle()
|
_toggle()
|
||||||
|
|
||||||
func _toggle():
|
func _toggle():
|
||||||
var attributes = {}
|
HomeApi.set_state(entity_id, "off" if active.value else "on")
|
||||||
|
|
||||||
if !active.value&&brightness.value != null:
|
|
||||||
attributes["brightness"] = int(brightness.value)
|
|
||||||
|
|
||||||
HomeApi.set_state(entity_id, "off" if active.value else "on", attributes)
|
|
|
@ -2,5 +2,6 @@
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
resource_local_to_scene = true
|
resource_local_to_scene = true
|
||||||
|
albedo_color = Color(0.231373, 0.231373, 0.231373, 1)
|
||||||
emission = Color(1, 0.65098, 0, 1)
|
emission = Color(1, 0.65098, 0, 1)
|
||||||
emission_energy_multiplier = 0.0
|
emission_energy_multiplier = 0.0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user