Logging is more efficient
This commit is contained in:
parent
c3c1383ae6
commit
1e136a2416
15 changed files with 136 additions and 158 deletions
|
@ -118,11 +118,9 @@ def setup(hass, config):
|
|||
if light_needed:
|
||||
|
||||
logger.info(
|
||||
"Home coming event for {}. Turning lights on".
|
||||
format(entity))
|
||||
"Home coming event for %s. Turning lights on", entity)
|
||||
|
||||
light.turn_on(hass, light_ids,
|
||||
profile=light_profile)
|
||||
light.turn_on(hass, light_ids, profile=light_profile)
|
||||
|
||||
# Are we in the time span were we would turn on the lights
|
||||
# if someone would be home?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue