mawinkler / astroweather

Asynchronous Astro Weather Forecast for Home Assistant
GNU General Public License v3.0
69 stars 9 forks source link

Accessing the `is_metric` property of the unit system is deprecated #19

Closed tomlut closed 1 year ago

tomlut commented 1 year ago

As per: https://github.com/home-assistant/core/pull/80257

Logger: homeassistant.helpers.frame Source: helpers/frame.py:77 First occurred: 12:52:33 (2 occurrences) Last logged: 12:52:36

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 astroweather using this method at custom_components/astroweather/weather.py, line 77: unit_system = "metric" if hass.config.units.is_metric else "imperial"

tomlut commented 1 year ago

Fixed in 0.22.3

Thanks!