mawinkler / astroweather

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

Overriding deprecated methods #15

Closed tomlut closed 2 years ago

tomlut commented 2 years ago

After updating to core-2022.7.0b0 the following warning is present:

Logger: homeassistant.components.weather
Source: components/weather/__init__.py:308
Integration: Weather (documentation, issues)
First occurred: 19:16:37 (2 occurrences)
Last logged: 19:16:40

custom_components.astroweather.weather::AstroWeatherWeather is overriding deprecated methods on an instance of WeatherEntity, this is not valid and will be unsupported from Home Assistant 2023.1. Please report it to the custom component author.

Possibly related to this developer blog entry:

https://developers.home-assistant.io/blog/2022/06/27/weather_entity_refactoring/

mawinkler commented 2 years ago

Hi @tomlut, thank you for reporting this. Will take care of this with the next update.

mawinkler commented 2 years ago

Should now be fixed with v0.22.0

tomlut commented 2 years ago

It is, thanks!