Logging is more efficient
This commit is contained in:
1 parent
c3c1383ae6
commit
1e136a2416
15 files changed
+136
-158
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user