Warn Home Assistant
rafkan20 opened this issue ยท 10 comments
Home Assistant: 2023.6.1
Enigma2 + OpenWebIF integration: 1.6
After updating home assistant to version 2023.6.1, the following warning appears:
2023-06-09 09:43:16.722 WARNING (MainThread) [py.warnings] /usr/local/lib/python3.11/site-packages/bs4/builder/__init__.py:545: XMLParsedAsHTMLWarning: It looks like you're parsing an XML document using an HTML parser. If this really is an HTML document (maybe it's XHTML?), you can ignore or filter this warning. If it's XML, you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the lxml package installed, and pass the keyword argument `features="xml"` into the BeautifulSoup constructor.
warnings.warn(
Hi @rafkan20 , thanks for the feedback.
I had that warning and made the updates to lxml parser instead of the html parser.
Can you please remove completely the plugin and restart home assistant ?
I need to understand if that warning disappears or not.
If the warning is still there I will try to solve it.
Hi @cinzas.
I removed the plugin, waiting for the warnings to appear.
I'll pass the information .
Edit: 15:55
After uninstalling the add-on for 4 hours, the error did not appear.
Reinstalling - will keep an eye on it.
After reinstalling - the error reappears:
2023-06-09 16:00:50.860 WARNING (MainThread) [py.warnings] /usr/local/lib/python3.11/site-packages/bs4/builder/__init__.py:545: XMLParsedAsHTMLWarning: It looks like you're parsing an XML document using an HTML parser. If this really is an HTML document (maybe it's XHTML?), you can ignore or filter this warning. If it's XML, you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the lxml package installed, and pass the keyword argument `features="xml"` into the BeautifulSoup constructor.
warnings.warn(
2023-06-09 16:01:00.925 WARNING (MainThread) [py.warnings] /usr/local/lib/python3.11/site-packages/bs4/builder/__init__.py:545: XMLParsedAsHTMLWarning: It looks like you're parsing an XML document using an HTML parser. If this really is an HTML document (maybe it's XHTML?), you can ignore or filter this warning. If it's XML, you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the lxml package installed, and pass the keyword argument `features="xml"` into the BeautifulSoup constructor.
warnings.warn(
Got the same error as @rafkan20 after update and even with remove addon, restart. Add addon, restart
I removed the addon, restarted HA. I re-added the addon and restarted the HA.
The following errors occur:
2023-06-09 17:38:31.748 WARNING (MainThread) [py.warnings] /usr/local/lib/python3.11/site-packages/bs4/builder/__init__.py:545: XMLParsedAsHTMLWarning: It looks like you're parsing an XML document using an HTML parser. If this really is an HTML document (maybe it's XHTML?), you can ignore or filter this warning. If it's XML, you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the lxml package installed, and pass the keyword argument `features="xml"` into the BeautifulSoup constructor.
warnings.warn(
2023-06-09 18:12:02.043 WARNING (MainThread) [py.warnings] /usr/local/lib/python3.11/site-packages/bs4/builder/__init__.py:545: XMLParsedAsHTMLWarning: It looks like you're parsing an XML document using an HTML parser. If this really is an HTML document (maybe it's XHTML?), you can ignore or filter this warning. If it's XML, you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the lxml package installed, and pass the keyword argument `features="xml"` into the BeautifulSoup constructor.
warnings.warn(
Edit:
Another warning:
Logger: py.warnings
Source: custom_components/enigma/media_player.py:204
Integration: Enigma2 addon ([documentation](https://github.com/cinzas/homeassistant-enigma-player), [issues](https://github.com/cinzas/homeassistant-enigma-player/issues))
First occurred: 18:26:42 (2 occurrences)
Last logged: 18:54:02
/usr/local/lib/python3.11/site-packages/bs4/builder/__init__.py:545: XMLParsedAsHTMLWarning: It looks like you're parsing an XML document using an HTML parser. If this really is an HTML document (maybe it's XHTML?), you can ignore or filter this warning. If it's XML, you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the lxml package installed, and pass the keyword argument `features="xml"` into the BeautifulSoup constructor. warnings.warn(
Thanks. I will have a look.
This is only a warning from BeautifoulSoup, not an error.
Anyway I will try to fix it :)
Released version 1.7.
Can you guys helping me checking ?
Update should be present on HACS if you use it.
Thanks for the quick fix. It looks like you fixt it. Installed and reboot HA, and the warning is gone here ๐๐ป
I installed version 1.7. Warnings are not appearing. Thank you