From 20cffc30de55d908096f285adc8bab8a97e89651 Mon Sep 17 00:00:00 2001 From: "David F. Mulcahey" Date: Fri, 30 Apr 2021 07:48:11 -0400 Subject: [PATCH] Small ZHA code cleanup (#49908) --- homeassistant/components/zha/alarm_control_panel.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/homeassistant/components/zha/alarm_control_panel.py b/homeassistant/components/zha/alarm_control_panel.py index bd11ce07741..dd705e44798 100644 --- a/homeassistant/components/zha/alarm_control_panel.py +++ b/homeassistant/components/zha/alarm_control_panel.py @@ -5,9 +5,6 @@ import logging from zigpy.zcl.clusters.security import IasAce from homeassistant.components.alarm_control_panel import ( - ATTR_CHANGED_BY, - ATTR_CODE_ARM_REQUIRED, - ATTR_CODE_FORMAT, DOMAIN, FORMAT_TEXT, SUPPORT_ALARM_ARM_AWAY, @@ -162,13 +159,3 @@ class ZHAAlarmControlPanel(ZhaEntity, AlarmControlPanelEntity): def state(self): """Return the state of the entity.""" return IAS_ACE_STATE_MAP.get(self._channel.armed_state) - - @property - def state_attributes(self): - """Return the state attributes.""" - state_attr = { - ATTR_CODE_FORMAT: self.code_format, - ATTR_CHANGED_BY: self.changed_by, - ATTR_CODE_ARM_REQUIRED: self.code_arm_required, - } - return state_attr