mawinkler / astroweather

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

Failed setup, will retry: '>' not supported between instances of 'NoneType' and 'datetime.datetime' #63

Closed 0utc45t closed 1 week ago

0utc45t commented 1 week ago

Astroweather stopped working after upgrading of the integration a few days ago. I can't get it to work again even with downgrading to previous version. Or by removing and reinstalling integration. I used HACS to install Astroweather (and lovelace card). Debug log attached. My homeassistant is running on Yellow, everything is updated to newest versions available.

home-assistant_astroweather_2024-10-09T11-50-57.696Z.log

mawinkler commented 1 week ago

I found the problem. There are missing checks if the Moon either does not rise or set in a give timespan. Is it possible for you to send me your geographical location (long, lat, elevation) for validation?

0utc45t commented 1 week ago

Hi, These coordinates are close, but not exact, taken from Google maps. Altitude around 12 meters. 65.064717,25.553043

BR, Sami

On Wed, 9 Oct 2024, 21.31 Markus Winkler, @.***> wrote:

I found the problem. There are missing checks if the Moon either does not rise or set in a give timespan. Is it possible for you to send me your geographical location (long, lat, elevation) for validation?

— Reply to this email directly, view it on GitHub https://github.com/mawinkler/astroweather/issues/63#issuecomment-2403008663, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4AYNLSRSDUQPH6BU3FBZELZ2VY77AVCNFSM6AAAAABPULXWDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBTGAYDQNRWGM . You are receiving this because you authored the thread.Message ID: @.***>

mawinkler commented 1 week ago

Thanks to Finland. Can you change the version of pyastroweatherio in the manifest.json of astroweather to 0.61.0.2 and give it a try?

    "requirements": [
        "pyastroweatherio==0.61.0.2"
    ],
0utc45t commented 1 week ago

I changed the version as requested and rebooted HA Yellow. Still not working and errors changed in the log file. There seems to be lot of warnings of other integrations as well... I'm not cutting away anything, so I don't accidentally remove anything you actually need to see.

home-assistant_2024-10-10T04-52-18.474Z.log

mawinkler commented 1 week ago

I released 0.61.1 which hopefully fixes your issues

0utc45t commented 1 week ago

Yes, it seems it did. Thank you very much! :-D

mawinkler commented 1 week ago

fixed with 0.61.1