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