Skip to content

Commit

Permalink
Improve check in createOrUpdateAccessory to check validity of device …
Browse files Browse the repository at this point in the history
…definition.
  • Loading branch information
itavero committed Jan 2, 2024
1 parent 62e15d4 commit ecc9a7f
Show file tree
Hide file tree
Showing 2 changed files with 213 additions and 67 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Since version 1.0.0, we try to follow the [Semantic Versioning](https://semver.o

### Fixed

- Type checks on Z2M models now explicitly check that the input is not null or undefined, to prevent crashes when we get unexpected data (see [#794](https://github.com/itavero/homebridge-z2m/issues/794))
- Type checks on Z2M models now explicitly check that the input is not null or undefined, to prevent crashes when we get unexpected data. (see [#794](https://github.com/itavero/homebridge-z2m/issues/794))
- When creating or updating an accessory, previously it was only checked if the device definition was not undefined. Now we check if it seems to be a valid device definition. (see [#794](https://github.com/itavero/homebridge-z2m/issues/794))

## [1.9.2] - 2022-10-01

Expand Down
Loading

0 comments on commit ecc9a7f

Please sign in to comment.