mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Remove dead code from concord232 (#128907)
This commit is contained in:
parent
106746ce58
commit
c0f1996478
@ -138,10 +138,7 @@ class Concord232Alarm(AlarmControlPanelEntity):
|
||||
"""Validate given code."""
|
||||
if self._code is None:
|
||||
return True
|
||||
if isinstance(self._code, str):
|
||||
alarm_code = self._code
|
||||
else:
|
||||
alarm_code = self._code.render(from_state=self._attr_state, to_state=state)
|
||||
alarm_code = self._code
|
||||
check = not alarm_code or code == alarm_code
|
||||
if not check:
|
||||
_LOGGER.warning("Invalid code given for %s", state)
|
||||
|
Loading…
x
Reference in New Issue
Block a user