From d4c3a6c782abf2137b66bb53948420766cc5495d Mon Sep 17 00:00:00 2001 From: Nils Stein <31704359+mietzen@users.noreply.github.com> Date: Sat, 9 Sep 2023 13:48:07 +0200 Subject: [PATCH] Fix selenium (#2) * fixing selenium --- fritz_advanced_thermostat/fritz_advanced_thermostat.py | 6 +++--- requirements.txt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fritz_advanced_thermostat/fritz_advanced_thermostat.py b/fritz_advanced_thermostat/fritz_advanced_thermostat.py index e75a4a2..ea15aef 100644 --- a/fritz_advanced_thermostat/fritz_advanced_thermostat.py +++ b/fritz_advanced_thermostat/fritz_advanced_thermostat.py @@ -58,7 +58,7 @@ def __init__(self, # Check Fritz!OS via FritzConnection fc = FritzConnection(address=host, user=user, password=password) self._fritzos = fc.system_version - self._supported_firmware = ['7.29', '7.56'] + self._supported_firmware = ['7.29', '7.30', '7.31', '7.56', '7.57'] # Set basic properties self._experimental = experimental self._user = user @@ -151,10 +151,10 @@ def _scrape_thermostat_data(self, device_name): valid_device_type = any( [True for x in row_text if x in self._valid_device_types]) if valid_device_type or self._experimental: - if version.parse('7.0') < version.parse(self._fritzos) <= version.parse('7.29'): + if version.parse('7.0') < version.parse(self._fritzos) <= version.parse('7.31'): if len(row_text) == 5: grouped = True - if version.parse('7.50') < version.parse(self._fritzos) <= version.parse('7.56'): + if version.parse('7.50') < version.parse(self._fritzos) <= version.parse('7.99'): if len(row_text) == 4: grouped = True row.find_element(By.TAG_NAME, "button").click() diff --git a/requirements.txt b/requirements.txt index ef2949f..c518f1f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ fritzconnection>=1.12.2 pyfritzhome>=0.6.8 requests>=2.31.0 -selenium>=4.11.2 -packaging>=23.1 \ No newline at end of file +selenium==4.10.0 +packaging>=23.1