From 38723b277e05e498e4defb816cb47e4e5d63bfd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Bjarni?= Date: Mon, 27 Dec 2021 09:49:38 +0000 Subject: [PATCH] Added XML RSS as Content-Type (#62822) --- homeassistant/components/rest/sensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/rest/sensor.py b/homeassistant/components/rest/sensor.py index 422ce84cc46..f18fcc8287f 100644 --- a/homeassistant/components/rest/sensor.py +++ b/homeassistant/components/rest/sensor.py @@ -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))