Skip to content

Commit

Permalink
Remove dead code from concord232 (#128907)
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Oct 21, 2024
1 parent 106746c commit c0f1996
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions homeassistant/components/concord232/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ def _validate_code(self, code, state):
"""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)
Expand Down

0 comments on commit c0f1996

Please sign in to comment.