Closed heinemannj closed 9 months ago
I have this issue too
stesso problema, in realta sono 2
LENGTH_MILES was used from ingv_centro_nazionale_terremoti, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.MILES instead, please create a bug report at https://github.com/caiosweet/Home-Assistant-custom-components-INGV/issues
LENGTH_KILOMETERS was used from ingv_centro_nazionale_terremoti, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.KILOMETERS instead, please create a bug report at https://github.com/caiosweet/Home-Assistant-custom-components-INGV/issues
I'm py newbye but my suggest is that: init.py + geo_location.py
from homeassistant.const import ( CONF_LATITUDE, CONF_LONGITUDE, CONF_RADIUS,
# LENGTH_MILES,
)
from homeassistant.const import UnitOfLength
then substitute LENGHT_ with UnitOfLenght.MILES / KILOMETERS
I think that with the changes in @mrai64, the warning has been resolved.
LENGTH_MILES was used from ingv_centro_nazionale_terremoti, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.MILES instead, please create a bug report at https://github.com/caiosweet/Home-Assistant-custom-components-INGV/issues