mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Added XML RSS as Content-Type (#62822)
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user