Skip to content

Commit

Permalink
Fix selenium (#2)
Browse files Browse the repository at this point in the history
* fixing selenium
  • Loading branch information
mietzen authored Sep 9, 2023
1 parent b995070 commit d4c3a6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions fritz_advanced_thermostat/fritz_advanced_thermostat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fritzconnection>=1.12.2
pyfritzhome>=0.6.8
requests>=2.31.0
selenium>=4.11.2
packaging>=23.1
selenium==4.10.0
packaging>=23.1

0 comments on commit d4c3a6c

Please sign in to comment.