mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Added XML RSS as Content-Type (#62822)
This commit is contained in:
parent
a17fffbfc2
commit
38723b277e
@ -144,6 +144,7 @@ class RestSensor(RestEntity, SensorEntity):
|
||||
content_type.startswith("text/xml")
|
||||
or content_type.startswith("application/xml")
|
||||
or content_type.startswith("application/xhtml+xml")
|
||||
or content_type.startswith("application/rss+xml")
|
||||
):
|
||||
try:
|
||||
value = json.dumps(xmltodict.parse(value))
|
||||
|
Loading…
x
Reference in New Issue
Block a user