pnbruckner / ha-life360

A Home Assistant integration for Life360.
32 stars 4 forks source link

Deprecated constants warning #18

Closed systematicallyrandom closed 1 month ago

systematicallyrandom commented 1 month ago

Logger: homeassistant.const Source: helpers/deprecation.py:206 First occurred: 1:58:06 PM (4 occurrences) Last logged: 1:58:06 PM

LENGTH_FEET was used from life360, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.FEET instead, please report it to the author of the 'life360' custom integration LENGTH_KILOMETERS was used from life360, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.KILOMETERS instead, please report it to the author of the 'life360' custom integration LENGTH_METERS was used from life360, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.METERS instead, please report it to the author of the 'life360' custom integration LENGTH_MILES was used from life360, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.MILES instead, please report it to the author of the 'life360' custom integration

pnbruckner commented 1 month ago

What version are you using? 0.3.10 is way too old and really doesn't work anymore due to server API changes. Please use the much newer beta, 0.5.0b7.

systematicallyrandom commented 1 month ago

Great catch. I had literally just updated to the latest beta 0.5.0b7 via hacs, then rebooted as required and was still getting the same error. After your suggestion I double checked the version and it was still on 0.3.10. (Maybe a hacs bug when switching on the beta switch?) I updated again and this time it actually updated to 0.5.0b7 and that error went away.

Now I'm having other issues, but I'll start another issue if I can't figure it out. Thanks!

On Sun, May 26, 2024, 2:59 PM Phil Bruckner @.***> wrote:

What version are you using? 0.3.10 is way too old. Please use the much newer beta, 0.5.0b7.

— Reply to this email directly, view it on GitHub https://github.com/pnbruckner/ha-life360/issues/18#issuecomment-2132364764, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM5S3HOOMTJRRIJURTQYURDZEIWK3AVCNFSM6AAAAABIJ7PDZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSGM3DINZWGQ . You are receiving this because you authored the thread.Message ID: @.***>