Skip to content

Commit

Permalink
Merge pull request #38 from rappenze/fix_error_handlinh_in_has_color
Browse files Browse the repository at this point in the history
Fix error handling in has_color
  • Loading branch information
rappenze authored Apr 24, 2024
2 parents e188859 + 87b013b commit c124229
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyfibaro/fibaro_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def has_color(self) -> bool:
try:
self.rgbw_color
return True
except TypeError:
except (TypeError, ValueError):
return False
return False

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.7.7
version = 0.7.8
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 c124229

Please sign in to comment.