typo
This commit is contained in:
parent
1001f21734
commit
fdfe2cb376
@ -71,7 +71,7 @@ light_state = get_state("lights", light)
|
||||
if debug: print (f"Dark: {sensor_state['dark']}, Daylight: {sensor_state['daylight']}, Light On: {sensor_state['daylight']}")
|
||||
|
||||
if sensor_state['dark'] and not light_state['on']:
|
||||
if verbose or debug: print ("Lights ON!")
|
||||
if verbose or debug: print ("Light ON!")
|
||||
put_state("lights", light, "on")
|
||||
if not sensor_state['dark'] and light_state['on']:
|
||||
if verbose or debug: print ("Light OFF!")
|
||||
|
@ -69,7 +69,7 @@ def put_state(type, id, action):
|
||||
light_state = get_state("lights", light)
|
||||
|
||||
if action == 'on' and not light_state['on']:
|
||||
if verbose or debug: print ("Lights ON!")
|
||||
if verbose or debug: print ("Light ON!")
|
||||
put_state("lights", light, "on")
|
||||
if action == 'off' and light_state['on']:
|
||||
if verbose or debug: print ("Light OFF!")
|
||||
|
Loading…
Reference in New Issue
Block a user