1.5.1
Changes in version 1.5.1
Added
- A new option
economy
in therefresh
service, allowing users to enable economy mode to conserve API key usage by updating the IP address only when it changes.
Changed
-
custom_components/ipv64/__init__.py
- Updated the
async_update
function to accept aServiceCall
argument, allowing for a new option to be passed. - Added logic to check if the
economy
option is present in the service call data and then use it in the_async_update_data
method accordingly.
- Updated the
-
custom_components/ipv64/coordinator.py
- Updated the
async_update
method to accept aServiceCall
argument, which is used to determine whether to use economy mode or not. - Added a new method
check_ip_equal
to check if the IP address has changed or not. - Modified
_async_update_data
to use the newcheck_ip_equal
method when economy mode is enabled, ensuring that the IP address is updated only if it has changed.
- Updated the
-
custom_components/ipv64/strings.json
- Updated translations for the new
refresh
service and itseconomy
field.
- Updated translations for the new
Info
-
custom_components/ipv64/manifest.json
- Updated the version to 1.5.1.
-
custom_components/ipv64/services.yaml
- Added a new field
economy
to therefresh
service, which is a boolean selector.
- Added a new field
Removed
- No items were removed in this version.
These changes introduce a new option economy
in the refresh
service, which allows users to enable economy mode to conserve API key usage by updating the IP address only when it changes. The version has been updated to 1.5.1 to reflect these changes.
What's Changed
- 🔨 Update hacs.json file by <github-actions[bot]> by @github-actions in #24
- add refresh service by @Ludy87 in #25
Full Changelog: 1.5.0...1.5.1