Logging is more efficient

This commit is contained in:
Paulus Schoutsen 2014-11-08 13:57:08 -08:00
parent c3c1383ae6
commit 1e136a2416
15 changed files with 136 additions and 158 deletions

View file

@ -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?