Skip to content

Commit

Permalink
change log level to warning for triggering alarm or arming failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsfaber committed Oct 20, 2024
1 parent b1dbbd2 commit 4da6534
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/alarmo/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def async_arm(self, arm_mode, **kwargs):

if open_sensors:
# there where errors -> abort the arm
_LOGGER.info(
_LOGGER.warning(
"Cannot transition from state {} to state {}, there are open sensors".format(self._state, arm_mode)
)
self.async_arm_failure(open_sensors, context_id=context_id)
Expand Down Expand Up @@ -710,7 +710,7 @@ def async_arm(self, arm_mode, **kwargs):

if open_sensors:
# there where errors -> abort the arm
_LOGGER.info("Cannot arm right now, there are open sensors")
_LOGGER.warning("Cannot arm right now, there are open sensors")
self.async_arm_failure(open_sensors, context_id=context_id)
return False
else:
Expand Down Expand Up @@ -808,7 +808,7 @@ def async_trigger_timer_finished(now):
# clear previous timer when transitioning from pending state
self.async_clear_timer()

_LOGGER.info("Alarm is triggered!")
_LOGGER.warning("Alarm is triggered!")
self.async_update_state(STATE_ALARM_TRIGGERED)

else: # to pending state
Expand Down

0 comments on commit 4da6534

Please sign in to comment.