Added XML RSS as Content-Type (#62822)
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…
Reference in New Issue