Skip to content

Commit

Permalink
Reduce log level to warning for get_all_device_data JSONDecodeError e…
Browse files Browse the repository at this point in the history
…xceptions (#1215)
  • Loading branch information
SukramJ authored Sep 29, 2023
1 parent ead007e commit f437e19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Version 2023.9.7 (2023-09-29)

- Add check to BaseHomematicException
- Reduce log level to 'warning' for get_all_device_data 'JSONDecodeError' exceptions
- Update requirements

# Version 2023.9.6 (2023-09-29)
Expand Down
3 changes: 2 additions & 1 deletion hahomematic/client/json_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,9 @@ async def get_all_device_data(self, interface: str) -> dict[str, dict[str, dict[
self._handle_exception_log(
iid=iid,
exception=jderr,
extra_msg="This leeds to a higher DutyCycle during Integration startup",
extra_msg=f"Using fallback. This leeds to a higher DutyCycle during Integration startup for interface {interface}",
multiple_logs=False,
level=logging.WARNING,
)

return all_device_data
Expand Down

0 comments on commit f437e19

Please sign in to comment.