core: OpenHome: cannot import name 'UpnpFactory' from 'async_upnp_client'
The problem
2022-04-08 16:18:40 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform openhome.media_player: Platform not found (cannot import name 'UpnpFactory' from 'async_upnp_client' (/usr/local/lib/python3.9/site-packages/async_upnp_client/__init__.py)).
This popped up in my log after the upgrade. No clue what to do about it, I’m not using openhome products (afaik)
What version of Home Assistant Core has the issue?
2022.4.1
What was the last working version of Home Assistant Core?
2022.3.7
What type of installation are you running?
Home Assistant Container
Integration causing the issue
openhome?
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2022-04-08 16:18:40 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform openhome.media_player: Platform not found (cannot import name 'UpnpFactory' from 'async_upnp_client' (/usr/local/lib/python3.9/site-packages/async_upnp_client/__init__.py)).
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 22 (9 by maintainers)
Looks like the module is still available within async_upnp_client so it should be just an update to the import used in the lib.
Will be a few days before I can update that library though.
Installed 2022.4.4 Its now working. Many thanks,
And just to confirm for someone who DOES USE Openhome (which was broken in 2022.4.0) it has now been fixed and is working again after upgrading from
2022.4.3
to2022.4.4
, thank you. (Sorry, I see @marc965 was responding a Linn/Openhome user.)Working for me so far 2022.4.4. Thanks!
@bazwilliams please tag me when it’s fixed so I can add it to a hot fix.
So there are two things happenings here:
openhome
media player platform being discovered without it being configured: You have set up the legacydiscovery
integration. This integration found a device on your network claiming to beopenhome
compatible. For the record, thediscovery
integration only discovers 8 specific integrations and is no longer part of the default config.