diff --git a/custom_components/eufy_security/alarm_control_panel.py b/custom_components/eufy_security/alarm_control_panel.py index 8edd6e1..efba35d 100644 --- a/custom_components/eufy_security/alarm_control_panel.py +++ b/custom_components/eufy_security/alarm_control_panel.py @@ -46,9 +46,9 @@ class CurrentModeToStateValue(Enum): NONE = "Unknown" AWAY = AlarmControlPanelState.ARMED_AWAY HOME = AlarmControlPanelState.ARMED_HOME - CUSTOM_BYPASS = auto() - NIGHT = auto() - VACATION = auto() + CUSTOM_BYPASS = 3 + NIGHT = 4 + VACATION = 5 DISARMED = AlarmControlPanelState.DISARMED OFF = STATE_OFF TRIGGERED = AlarmControlPanelState.TRIGGERED diff --git a/custom_components/eufy_security/model.py b/custom_components/eufy_security/model.py index 1803089..811851b 100644 --- a/custom_components/eufy_security/model.py +++ b/custom_components/eufy_security/model.py @@ -22,16 +22,16 @@ class ConfigField(Enum): host = "127.0.0.1" port = 3000 sync_interval = 600 # seconds - rtsp_server_address = auto() + rtsp_server_address = 3 no_stream_in_hass = False name_for_custom1 = "Custom 1" name_for_custom2 = "Custom 2" name_for_custom3 = "Custom 3" - captcha_id = auto() - captcha_img = auto() - captcha_input = auto() - mfa_required = auto() - mfa_input = auto() + captcha_id = 8 + captcha_img = 9 + captcha_input = 10 + mfa_required = 11 + mfa_input = 12 @dataclass