core: Wemo integration error
The problem
Wemo integration is broken.
What is version of Home Assistant Core has the issue?
core-2021.7.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Belkin WeMo
Link to integration documentation on our website
https://www.home-assistant.io/integrations/wemo/
Example YAML snippet
No response
Anything in the logs that might be useful for us?
[31m2021-08-02 01:11:15 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Wemo for wemo
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/homeassistant/config_entries.py", line 293, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/usr/lib/python3.8/site-packages/homeassistant/components/wemo/__init__.py", line 133, in async_setup_entry
await wemo_discovery.async_discover_and_schedule()
File "/usr/lib/python3.8/site-packages/homeassistant/components/wemo/__init__.py", line 207, in async_discover_and_schedule
for device in await self._hass.async_add_executor_job(
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.8/site-packages/pywemo/discovery.py", line 37, in discover_devices
device = device_from_uuid_and_location(
File "/usr/lib/python3.8/site-packages/pywemo/discovery.py", line 75, in device_from_uuid_and_location
return Switch(location)
File "/usr/lib/python3.8/site-packages/pywemo/ouimeaux_device/__init__.py", line 115, in __init__
self._config_any = {
File "/usr/lib/python3.8/site-packages/pywemo/ouimeaux_device/__init__.py", line 115, in <dictcomp>
self._config_any = {
File "/usr/lib/python3.8/site-packages/pywemo/ouimeaux_device/__init__.py", line 114, in <genexpr>
xs_any = (et.fromstring(extra) for extra in self._config.anytypeobjs_)
File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1777, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1082, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
File "<string>", line 2
lxml.etree.XMLSyntaxError: Extra content at the end of the document, line 2, column 5[0m
[31m2021-08-02 01:11:30 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/homeassistant/components/wemo/__init__.py", line 207, in async_discover_and_schedule
for device in await self._hass.async_add_executor_job(
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.8/site-packages/pywemo/discovery.py", line 37, in discover_devices
device = device_from_uuid_and_location(
File "/usr/lib/python3.8/site-packages/pywemo/discovery.py", line 75, in device_from_uuid_and_location
return Switch(location)
File "/usr/lib/python3.8/site-packages/pywemo/ouimeaux_device/__init__.py", line 115, in __init__
self._config_any = {
File "/usr/lib/python3.8/site-packages/pywemo/ouimeaux_device/__init__.py", line 115, in <dictcomp>
self._config_any = {
File "/usr/lib/python3.8/site-packages/pywemo/ouimeaux_device/__init__.py", line 114, in <genexpr>
xs_any = (et.fromstring(extra) for extra in self._config.anytypeobjs_)
File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1777, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1082, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
File "<string>", line 2
lxml.etree.XMLSyntaxError: Extra content at the end of the document, line 2, column 5[0m
[31m2021-08-02 01:11:55 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/homeassistant/components/wemo/__init__.py", line 207, in async_discover_and_schedule
for device in await self._hass.async_add_executor_job(
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.8/site-packages/pywemo/discovery.py", line 37, in discover_devices
device = device_from_uuid_and_location(
File "/usr/lib/python3.8/site-packages/pywemo/discovery.py", line 75, in device_from_uuid_and_location
return Switch(location)
File "/usr/lib/python3.8/site-packages/pywemo/ouimeaux_device/__init__.py", line 115, in __init__
self._config_any = {
File "/usr/lib/python3.8/site-packages/pywemo/ouimeaux_device/__init__.py", line 115, in <dictcomp>
self._config_any = {
File "/usr/lib/python3.8/site-packages/pywemo/ouimeaux_device/__init__.py", line 114, in <genexpr>
xs_any = (et.fromstring(extra) for extra in self._config.anytypeobjs_)
File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1777, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1082, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
File "<string>", line 2
lxml.etree.XMLSyntaxError: Extra content at the end of the document, line 2, column 5[0m
[31m2021-08-02 01:12:30 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/homeassistant/components/wemo/__init__.py", line 207, in async_discover_and_schedule
for device in await self._hass.async_add_executor_job(
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.8/site-packages/pywemo/discovery.py", line 37, in discover_devices
device = device_from_uuid_and_location(
File "/usr/lib/python3.8/site-packages/pywemo/discovery.py", line 75, in device_from_uuid_and_location
return Switch(location)
File "/usr/lib/python3.8/site-packages/pywemo/ouimeaux_device/__init__.py", line 115, in __init__
self._config_any = {
File "/usr/lib/python3.8/site-packages/pywemo/ouimeaux_device/__init__.py", line 115, in <dictcomp>
self._config_any = {
File "/usr/lib/python3.8/site-packages/pywemo/ouimeaux_device/__init__.py", line 114, in <genexpr>
xs_any = (et.fromstring(extra) for extra in self._config.anytypeobjs_)
File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1777, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1082, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
File "<string>", line 2
lxml.etree.XMLSyntaxError: Extra content at the end of the document, line 2, column 5[0m
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20 (11 by maintainers)
Will start using the official image, thank you all for the help. I can’t remember the exact reason why I chose the linuxserver image over the official image. I’ll blame it on lack of experience with docker.
I appreciate it, and I’m sure others using that image will as well.
@esev thanks for finding this. Will look into this for our image but pretty sure it’s not an issue for us as it hasn’t been reported earlier. We already mark unsupported installation methods as unsupported but maybe there is a bug causing linuxserver container to be marked as supported. Will check that.
Hi @bobflem,
I went and filed a bug for the linuxserver folks (https://github.com/linuxserver/docker-homeassistant/issues/17). It looks like this issue was caused by a recent change on their end (4 days ago). I ran the python commands and verified
ghcr.io/linuxserver/homeassistant:2021.7.4-ls31
(the prior version) works. I think everything will run with that version until they can downgrade their version of libxml2.The image I’m using is
ghcr.io/linuxserver/homeassistant
I got 10 as well. HA is running on docker, and docker is running on Unraid 6.9.2 on a Dell R710 LFF.
Feel free to ask any questions you might have for me, I’ll do my best to answer.
I get something a heck of a lot longer than what you got:
Here’s the output of the second code block:
setup.xml.txt
Here’s what I get from lxml: