rany2 / open-meteo-solar-forecast

Python module that uses Open-Meteo to get solar production forecast
MIT License
11 stars 2 forks source link

Skip reintroduced wind speed None exception bug #12

Closed rany2 closed 2 weeks ago

rany2 commented 2 weeks ago

File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/open_meteo_solar_forecast/coordinator.py", line 57, in _async_update_data return await self.forecast.estimate() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/.local/lib/python3.12/site-packages/open_meteo_solar_forecast/open_meteo_solar_forecast.py", line 160, in estimate wind_speed * 1000 / 3600


TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

Fixes: 2ae2afa ("Implement support for multiple PV arrays (#8)")