From 0929f997f69d4c9ddd6d9d5653640460161fbaa1 Mon Sep 17 00:00:00 2001 From: Rudolf Offereins Date: Sun, 3 Nov 2024 15:10:17 +0100 Subject: [PATCH] Move BE to refresh token flow and support basetv (#151) --- custom_components/lghorizon/config_flow.py | 2 +- custom_components/lghorizon/const.py | 1 + custom_components/lghorizon/manifest.json | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/custom_components/lghorizon/config_flow.py b/custom_components/lghorizon/config_flow.py index 1dc79b1..7e4e080 100644 --- a/custom_components/lghorizon/config_flow.py +++ b/custom_components/lghorizon/config_flow.py @@ -108,7 +108,7 @@ async def async_step_credentials( country_code = COUNTRY_CODES[self.CONFIG_DATA[CONF_COUNTRY_CODE]][0:2] - if country_code not in ("gb", "ch"): + if country_code not in ("gb", "ch", "be"): cred_schema = cred_schema.extend({vol.Required(CONF_PASSWORD): cv.string}) else: cred_schema = cred_schema.extend( diff --git a/custom_components/lghorizon/const.py b/custom_components/lghorizon/const.py index fd0f6d7..650a5eb 100644 --- a/custom_components/lghorizon/const.py +++ b/custom_components/lghorizon/const.py @@ -18,6 +18,7 @@ "Ziggo": "nl", "Telenet (BE)": "be-nl", "Telenet (BE, PREPROD)": "be-nl-preprod", + "BASE TV (BE)": "be-basetv", # "Telenet (FR)": "be-fr", "Magenta": "at", "UPC Switzerland": "ch", diff --git a/custom_components/lghorizon/manifest.json b/custom_components/lghorizon/manifest.json index daa4d11..5f5d61f 100644 --- a/custom_components/lghorizon/manifest.json +++ b/custom_components/lghorizon/manifest.json @@ -9,7 +9,7 @@ "iot_class": "cloud_push", "issue_tracker": "https://github.com/Sholofly/lghorizon/issues", "requirements": [ - "lghorizon>=0.8.2" + "lghorizon>=0.8.3" ], - "version": "0.7.3" + "version": "0.7.4" } \ No newline at end of file