mvdwetering / huesyncbox

Custom integration for Home Assistant to control the Philips Hue Play HDMI Sync Box 4K or 8K
Apache License 2.0
113 stars 8 forks source link

Warnings about setting "version" directly in HA logs #96

Closed mvdwetering closed 3 months ago

mvdwetering commented 6 months ago

Describe the bug Home Assistant logs a wawrning:

2024-05-01 22:26:28.321 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'huesyncbox' sets "version" directly to update a config entry. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to use async_update_entry instead at custom_components/huesyncbox/init.py, line 145: config_entry.version = 2, please create a bug report at https://github.com/mvdwetering/huesyncbox/issues

and

2024-05-01 22:26:28.322 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'huesyncbox' sets "minor_version" directly to update a config entry. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to use async_update_entry instead at custom_components/huesyncbox/init.py, line 146: config_entry.minor_version = 2, please create a bug report at https://github.com/mvdwetering/huesyncbox/issues

To Reproduce Steps to reproduce the behavior:

  1. Start HA with integration enabled

Expected behavior A clear and concise description of what you expected to happen.

No warnings

Diagnostics n.a.

Logging Is in the description

Environment Provide details about the versions you are using, which helps to reproduce and find the issue quicker.

Additional info n.a.

mvdwetering commented 3 months ago

Fixed by #103 but is not released yet

mvdwetering commented 3 months ago

Released in 2.2.2