brianhanifin / Home-Assistant-Config

Home Assistant configuration files.
https://brianhanifin.com
123 stars 23 forks source link

`is_metric` deprecated and will be removed in 2023.1 #76

Closed majbah-ha closed 1 year ago

majbah-ha commented 1 year ago

Sinds a few days I noticed this warning in the logs

2022-11-14 11:15:35.292 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that accesses the is_metric property of the unit system. This is deprecated and will stop working in Home Assistant 2023.1. Please adjust to use instance check instead.. Please report issue to the custom integration author for smart_irrigation using this method at custom_components/smart_irrigation/init.py, line 107: SETTING_METRIC if hass.config.units.is_metric else SETTING_US

Thanks

brianhanifin commented 1 year ago

I am not the author of the Smart Irrigation component for Home Assistant. I shared the code that I used to create an irrigation controller using ESPHome.

You can report Smart Irrigation Issues here: https://github.com/jeroenterheerdt/HAsmartirrigation/issues