From b6ad79e2b893683e6788336e850563f8325fcfc1 Mon Sep 17 00:00:00 2001 From: Mick Vleeshouwer Date: Tue, 8 Feb 2022 07:11:05 -0800 Subject: [PATCH] Update PyOverkiz to 1.3.4 (#66076) --- homeassistant/components/overkiz/const.py | 21 +++++++++---------- .../components/overkiz/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/homeassistant/components/overkiz/const.py b/homeassistant/components/overkiz/const.py index a88706a428f..e6c55af0749 100644 --- a/homeassistant/components/overkiz/const.py +++ b/homeassistant/components/overkiz/const.py @@ -5,8 +5,7 @@ from datetime import timedelta import logging from typing import Final -from pyoverkiz.enums import UIClass -from pyoverkiz.enums.ui import UIWidget +from pyoverkiz.enums import OverkizCommandParam, UIClass, UIWidget from homeassistant.const import Platform @@ -67,13 +66,13 @@ OVERKIZ_DEVICE_TO_PLATFORM: dict[UIClass | UIWidget, Platform] = { # Map Overkiz camelCase to Home Assistant snake_case for translation OVERKIZ_STATE_TO_TRANSLATION: dict[str, str] = { - "externalGateway": "external_gateway", - "localUser": "local_user", - "lowBattery": "low_battery", - "LSC": "lsc", - "maintenanceRequired": "maintenance_required", - "noDefect": "no_defect", - "SAAC": "saac", - "SFC": "sfc", - "UPS": "ups", + OverkizCommandParam.EXTERNAL_GATEWAY: "external_gateway", + OverkizCommandParam.LOCAL_USER: "local_user", + OverkizCommandParam.LOW_BATTERY: "low_battery", + OverkizCommandParam.LSC: "lsc", + OverkizCommandParam.MAINTENANCE_REQUIRED: "maintenance_required", + OverkizCommandParam.NO_DEFECT: "no_defect", + OverkizCommandParam.SAAC: "saac", + OverkizCommandParam.SFC: "sfc", + OverkizCommandParam.UPS: "ups", } diff --git a/homeassistant/components/overkiz/manifest.json b/homeassistant/components/overkiz/manifest.json index 47c5c45f2ad..1c08d47622d 100644 --- a/homeassistant/components/overkiz/manifest.json +++ b/homeassistant/components/overkiz/manifest.json @@ -4,7 +4,7 @@ "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/overkiz", "requirements": [ - "pyoverkiz==1.3.2" + "pyoverkiz==1.3.4" ], "zeroconf": [ { diff --git a/requirements_all.txt b/requirements_all.txt index a3efffdaa76..a09b44aaf34 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1746,7 +1746,7 @@ pyotgw==1.1b1 pyotp==2.6.0 # homeassistant.components.overkiz -pyoverkiz==1.3.2 +pyoverkiz==1.3.4 # homeassistant.components.openweathermap pyowm==3.2.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index cf0136a8570..f6a835c8558 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1112,7 +1112,7 @@ pyotgw==1.1b1 pyotp==2.6.0 # homeassistant.components.overkiz -pyoverkiz==1.3.2 +pyoverkiz==1.3.4 # homeassistant.components.openweathermap pyowm==3.2.0