netdaemon icon indicating copy to clipboard operation
netdaemon copied to clipboard

Adding a general management of json errors for some types

Open helto4real opened this issue 7 months ago • 1 comments

Breaking change

Proposed change

This change is a more robust fix for exceptions thrown when the expected data type does not match with the json that are received from HA. It supports the subset of data types used in the HassClient data model.

Type of change

  • [ ] Dependency upgrade
  • [ ] Bugfix (non-breaking change which fixes an issue)
  • [ ] New feature (which adds functionality to an existing integration)
  • [ ] Breaking change (fix/feature causing existing functionality to break)
  • [x] Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • [x] The code change is tested and works locally.
  • [x] Local tests pass. Your PR cannot be merged unless tests pass
  • [x] The code compiles without warnings (code quality check)
  • [x] Tests have been added to verify that the new code works.

If user exposed functionality or configuration are added/changed:

  • [ ] Documentation added/updated for http://netdaemon.xtz

helto4real avatar Jun 28 '24 15:06 helto4real