bremor / bureau_of_meteorology

Custom component for retrieving weather information from the Bureau of Meteorology.
MIT License
175 stars 29 forks source link

Deperciations in core 2024.1 #208

Open tomlut opened 6 months ago

tomlut commented 6 months ago

Logger: homeassistant.const Source: helpers/deprecation.py:204 First occurred: 13:51:47 (12 occurrences) Last logged: 13:51:50

SPEED_KILOMETERS_PER_HOUR was used from bureau_of_meteorology, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfSpeed.KILOMETERS_PER_HOUR instead, please create a bug report at https://github.com/bremor/bureau_of_meteorology/issues SPEED_KNOTS was used from bureau_of_meteorology, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfSpeed.KNOTS instead, please create a bug report at https://github.com/bremor/bureau_of_meteorology/issues

tomlut commented 6 months ago

Associated blog post:

https://developers.home-assistant.io/blog/2023/12/19/constant-deprecation/

Makin-Things commented 6 months ago

Need to add millimeters and celsius to that as well.

LENGTH_MILLIMETERS was used from bureau_of_meteorology, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.MILLIMETERS instead, please create a bug report at https://github.com/bremor/bureau_of_meteorology/issues TEMP_CELSIUS was used from bureau_of_meteorology, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/bremor/bureau_of_meteorology/issues SPEED_KILOMETERS_PER_HOUR was used from bureau_of_meteorology, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfSpeed.KILOMETERS_PER_HOUR instead, please create a bug report at https://github.com/bremor/bureau_of_meteorology/issues SPEED_KNOTS was used from bureau_of_meteorology, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfSpeed.KNOTS instead, please create a bug report at https://github.com/bremor/bureau_of_meteorology/issues