Prechádzať zdrojové kódy

alarm_control_panel: set code as not required

Upcoming change in HA 2024.6 enforces code entry by default unless this
is set to false.

https://developers.home-assistant.io/blog/2024/05/22/alarm_control_panel_validation
Jason Rumney 1 rok pred
rodič
commit
dba536921a

+ 1 - 0
custom_components/tuya_local/alarm_control_panel.py

@@ -71,6 +71,7 @@ class TuyaLocalAlarmControlPanel(TuyaLocalEntity, AlarmControlPanelEntity):
             self._attr_supported_features |= Feature.TRIGGER
         # Code support not implemented
         self._attr_code_format = None
+        self._attr_code_arm_required = False
 
     @property
     def state(self):