sander1988 / Indego

Home Assistant Custom Component for Bosch Indego Lawn Mower
Apache License 2.0
92 stars 29 forks source link

Change TEMP_CELSIUS to UnitOfTemperature #209

Closed kimzeuner closed 3 months ago

kimzeuner commented 4 months ago

I just saw the following warning in my system: "TEMP_CELSIUS was used from indego, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please report it to the author of the 'indego' custom integration"

So i changed TEMP_CELSIUS to UnitOfTemperature

Update: Just saw that also DEVICE_CLASS_CONNECTIVITY and DEVICE_CLASS_PROBLEM will be removed so changed these to BinarySensorDeviceClass.CONNECTIVITY and BinarySensorDeviceClass.PROBLEM

sander1988 commented 4 months ago

@kimzeuner - Yes you are right, we need to replace these before HA 2025.1 is releases (so this year).

@jm-73 - Have also applied these fixes to https://github.com/jm-73/Indego/pull/205

sander1988 commented 3 months ago

Merged with #205.