WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

Unable to import component: No module named 'homeassistant.components.image' (since v3.5.1)

Open bcutter opened this issue 1 year ago • 9 comments

Since updating to https://github.com/AlexxIT/WebRTC/releases/tag/v3.5.1 and doing the first restart of HA after the update (using HACS), I get this on every HA Core start:

grafik

Logger: homeassistant.setup
Source: setup.py:213
First occurred: 18:42:31 (1 occurrences)
Last logged: 18:42:31

Setup failed for custom integration webrtc: Unable to import component: No module named 'homeassistant.components.image'

Maybe because of https://github.com/AlexxIT/WebRTC/pull/619 looking for this entity type which does not exist on older HA Core versions? If true (just a wild guess): in that case the 3.5.1 update should have been flagged with a "breaking change" notification or listing the minimum needed HA Core version.

Home Assistant 2023.4.6
Supervisor 2023.12.0
Operating System 11.2
Frontend 20230411.1 - latest 

By the way there's a typo in the date of https://github.com/AlexxIT/WebRTC/releases/tag/v3.5.1.

bcutter avatar Jan 12 '24 19:01 bcutter

Edit: v3.5.0 works without any issues. Which HA version is needed to run v3.5.1?

2023.7?

https://www.home-assistant.io/blog/2023/07/05/release-20237/#image-entities

bcutter avatar Jan 12 '24 19:01 bcutter

You right. Image require newer Hass version. I think this is bad idea. Will fix this in next release. You can use previous version for now.

AlexxIT avatar Jan 13 '24 05:01 AlexxIT

Great. Looking forward to an updated version (you'll probably implement a "if availalbe, use it, if not, don't try to implement usage of image entity" check, right?) 🎉

bcutter avatar Jan 14 '24 16:01 bcutter

I think this is bad idea. Will fix this in next release.

@AlexxIT do you have any estimations for the new release containing the fix for this? Thanks.

bcutter avatar Jan 30 '24 14:01 bcutter

You can try latest master version

AlexxIT avatar Feb 17 '24 10:02 AlexxIT

You can try latest master version

Is there a new release? I'm only using HACS.

bcutter avatar Feb 17 '24 10:02 bcutter

You can install it via HACS. Redownload and select master from dropdown

AlexxIT avatar Feb 17 '24 10:02 AlexxIT

It's not a release yet.

AlexxIT avatar Feb 17 '24 10:02 AlexxIT

So when will you make a release?

bcutter avatar Mar 11 '24 15:03 bcutter

https://github.com/AlexxIT/WebRTC/releases/tag/v3.5.2

AlexxIT avatar Apr 07 '24 14:04 AlexxIT