travisghansen / hass-opnsense

OPNsense integration with Home Assistant
194 stars 25 forks source link

HA 2024.1 deprecated constants replacement #112

Closed alexdelprete closed 6 months ago

alexdelprete commented 8 months ago

should solve #111

alexdelprete commented 8 months ago

It's tested and seems to be working fine: https://github.com/travisghansen/hass-opnsense/issues/111#issuecomment-1878661179

Snuffy2 commented 7 months ago

I tried this PR and it has resolved most of the deprecation warnings, thanks! I am still getting one more that you may be able to address.

2024-01-31 10:18:05.433 WARNING (MainThread) [homeassistant.components.device_tracker] SOURCE_TYPE_ROUTER was used from opnsense, this is a deprecated constant which will be removed in HA Core 2025.1. Use SourceType.ROUTER instead, please create a bug report at https://github.com/travisghansen/hass-opnsense/issues

It is in: /custom_components/opnsense/device_tracker.py

alexdelprete commented 7 months ago

It is in: /custom_components/opnsense/device_tracker.py

Thanks, I updated the PR now. Please let me know if there's anything else that slipped my checks. :)