From 552a8607467baf3b276167daba21d28d20cb8d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=A8=D1=83=D1=82?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Sat, 20 Jan 2024 18:58:42 +0300 Subject: [PATCH] GUARD ZONE: fixed state alarm away. --- custom_components/zont_ha/core/zont.py | 4 ++-- custom_components/zont_ha/manifest.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/zont_ha/core/zont.py b/custom_components/zont_ha/core/zont.py index 01c11ae..a626fe9 100644 --- a/custom_components/zont_ha/core/zont.py +++ b/custom_components/zont_ha/core/zont.py @@ -6,7 +6,7 @@ from homeassistant.const import ( STATE_ALARM_TRIGGERED, STATE_UNAVAILABLE, STATE_ALARM_DISARMED, - STATE_ALARM_ARMED_HOME, STATE_ALARM_DISARMING, STATE_ALARM_ARMING + STATE_ALARM_DISARMING, STATE_ALARM_ARMING, STATE_ALARM_ARMED_AWAY ) from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.typing import HomeAssistantType @@ -129,7 +129,7 @@ def get_state_guard_zone_for_ha(guard_zone: GuardZoneZONT) -> str: case state_zont.disabled: return STATE_ALARM_DISARMED case state_zont.enabled: - return STATE_ALARM_ARMED_HOME + return STATE_ALARM_ARMED_AWAY case state_zont.disabling: return STATE_ALARM_DISARMING case state_zont.enabling: diff --git a/custom_components/zont_ha/manifest.json b/custom_components/zont_ha/manifest.json index dfc4aa6..5a936b4 100644 --- a/custom_components/zont_ha/manifest.json +++ b/custom_components/zont_ha/manifest.json @@ -7,5 +7,5 @@ "integration_type": "hub", "dependencies": ["http", "zeroconf"], "requirements": [], - "version": "0.1.3" + "version": "0.1.4" } \ No newline at end of file