jason0x43/hacs-hubitat

Integration broken after upgrade

Closed this issue · 5 comments

Describe the bug
Receiving the following error after upgrading from v9.8 to v9.25 (tested with 9.26, same issue):
ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration hubitat: Unable to import component: cannot import name 'UTC' from 'datetime' (/usr/local/lib/python3.10/datetime.py)

To Reproduce
start with a working configuration of home assistant v2023.4, hacs-hubitat v9.8 and hubitat C5 v2.3.8.134.
use HACS to upgrade the hubitat integration component to v9.25
now I receive the error in the log and the integrations won't load.

Screenshots

no screen message, just logged error.

Environment

  • Home Assistant version:
  • Integration version:

You’re running HA 2023.4?

That is correct:

Capturar

You’re running HA 2023.4?

Nevermind, I've updated HA to 2023.12 and now it works. I could just no find the version compatibility chart anywhere in the docs, but maybe I missed it.

Unfortunately the extension's version compatibility isn't well defined. I've been testing against current HA and HA from 3 months ago. I should probably at least shoot for supporting the last 6 months, but I don't want to end up maintaining a bunch of different code paths for different versions of HA. 🙂

Hey, no worries! This integration is a huge life saver for me and I cannot complain at all. Before that I was using a lot of http calls do have the same job done. 100% functional after upgrading HA to v 2023.12, thanks for making it available.