Updated the version number in the NUKIDevice module from
v2.1.0 to v2.1.1. This change reflects the introduction of
minor improvements and fixes since the last release.
No breaking changes were introduced, but it's important for
users to be aware of the version increment for their
dependencies and updates.
This commit introduces the use of the `Encode` module to ensure that
values being processed in the `WriteReadings` subroutine are correctly
encoded in UTF-8. The previous implementation did not account for
potential non-UTF-8 encoded data which could lead to issues when
updating readings.
The change specifically checks if the value (`$v`) is marked as UTF-8
using `Encode::is_utf8()`. If it is, the value is re-encoded to UTF-8
before being passed to `::readingsBulkUpdate()`. This adjustment
ensures that all data written to readings maintains proper character
encoding, improving compatibility and preventing potential data
corruption.
No breaking changes are introduced, but it is important for users
to validate that their readings correctly display any special
characters post-update.
The Nuki Bridge and Device modules have been updated to version 2.1.0.
Key changes include enhancements to the command handling within the
Bridge module, replacing the `given/when` construct with a more
flexible hash-based dispatcher for clarity and maintainability.
Additionally, minor refinements have been made in the Device module,
including improved reading updates and handling of last known
device states. The experimental feature switch has been commented
out, ensuring compatibility with standard Perl versions.
These updates improve the overall robustness and readability of the
code, making it easier to maintain and extend in future versions.
No breaking changes have been introduced.