mirror of
https://github.com/home-assistant/core.git
synced 2025-08-28 17:01:42 +02:00
Adjust manual alarm control panel integration
This commit is contained in:
@@ -385,7 +385,9 @@ class ManualAlarm(alarm.AlarmControlPanelEntity, RestoreEntity):
|
||||
if isinstance(self._code, str):
|
||||
alarm_code = self._code
|
||||
else:
|
||||
alarm_code = self._code.render(from_state=self._state, to_state=state)
|
||||
alarm_code = self._code.render(
|
||||
parse_result=False, from_state=self._state, to_state=state
|
||||
)
|
||||
check = not alarm_code or code == alarm_code
|
||||
if not check:
|
||||
_LOGGER.warning("Invalid code given for %s", state)
|
||||
|
Reference in New Issue
Block a user