Logging is more efficient

This commit is contained in:
Paulus Schoutsen committed 2014-11-08 13:59:40 -08:00
1 parent c3c1383ae6
commit 1e136a2416
15 files changed
+136 -158

No files matched your search

+2 -3
View File
@@ -91,9 +91,8 @@ def setup(hass, config):
new_state = STATE_BELOW_HORIZON
next_change = next_rising_dt
logger.info(
"{}. Next change: {}".format(new_state,
next_change.strftime("%H:%M")))
logger.info("%s. Next change: %s",
new_state, next_change.strftime("%H:%M"))
state_attributes = {
STATE_ATTR_NEXT_RISING: util.datetime_to_str(next_rising_dt),