OY
Size: a a a
OY
V
at
V
OO
at
OO
at
at
V
OO
V
V
at
OO
OO
M
at
V
--- sensor.py.org 2020-02-27 11:06:24.000000000 +0200
+++ sensor.py 2020-02-27 11:22:51.000000000 +0200
@@ -202,7 +202,10 @@
self.rest.update()
value = self.rest.data
_LOGGER.debug("Data fetched from resource: %s", value)
- content_type = self.rest.headers.get("content-type")
+ if self.rest.headers is not None:
+ content_type = self.rest.headers.get("content-type")
+ else:
+ content_type = None
if content_type and content_type.startswith("text/xml"):
try: