Skip to content

Commit

Permalink
Merge pull request #15 from rappenze/Fix_bug_for_older_fibaro_softwar…
Browse files Browse the repository at this point in the history
…e_versions

Fix current version getter for old software
  • Loading branch information
rappenze authored Mar 3, 2023
2 parents 65821a5 + 968206e commit 3d4e693
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyfibaro/fibaro_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, rest_client: RestClient) -> None:
@property
def current_version(self) -> str:
"""Returns the software version."""
return self.raw_data.get("currentVersion").get("version")
return self.raw_data.get("softVersion")

@property
def serial_number(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pyfibaro
version = 0.6.8
version = 0.6.9
description = Simple API to access fibaro home center from any Python 3 script. Designed for Home Assistant (but not only)
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit 3d4e693

Please sign in to comment.