Skip to content

Commit b50f08b

Browse files
authored
fix: remove trace logging
Use 'debug' in place of 'trace' logging
2 parents ea2abf5 + 04a033a commit b50f08b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

custom_components/entity_controller/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ async def async_setup(hass, config):
169169
source='active_timer', dest='idle',
170170
conditions=['is_timer_expired'])
171171

172-
# The following two transitions must be kept seperate because they have
172+
# The following two transitions must be kept seperate because they have
173173
# special conditional logic that cannot be combined.
174174
machine.add_transition(trigger='timer_expires', source='active_timer',
175175
dest='idle', conditions=['is_event_sensor'])
@@ -339,7 +339,7 @@ def __init__(self, hass, config, machine, entity):
339339
self.reset_count = None
340340
# logging.setFormatter(logging.Formatter(FORMAT))
341341
self.log = logging.getLogger(__name__ + '.' + config.get(CONF_NAME))
342-
342+
343343
self.log.debug(
344344
"Initialising EntityController entity with this configuration: " + str(
345345
config))
@@ -431,7 +431,7 @@ def override_state_change(self, entity, old, new):
431431
@callback
432432
def state_entity_state_change(self, entity, old, new):
433433
""" State change callback for state entities """
434-
self.log.trace("state_entity_state_change :: [%s] - old: %s, new: %s", str(entity), str(old), str(new))
434+
self.log.debug("state_entity_state_change :: [%s] - old: %s, new: %s", str(entity), str(old), str(new))
435435
# This can be called with either a state change or an attribute change. If the state changed, we definitely want to handle the transition. If only attributes changed, we'll check if the new attributes are significant (i.e., not being ignored).
436436
try:
437437
if old.state == new.state: # Only attributes changed

0 commit comments

Comments
 (0)