diff --git a/async_upnp_client/async_upnp_client.py b/async_upnp_client/async_upnp_client.py index 5e3d8fa4..ed74b5ef 100644 --- a/async_upnp_client/async_upnp_client.py +++ b/async_upnp_client/async_upnp_client.py @@ -244,7 +244,7 @@ def on_notify(self, headers, body): el_root = ET.fromstring(body) el_last_change = el_root.find('.//LastChange') - if el_last_change is None: + if el_last_change is None or el_last_change.text is None: _LOGGER.debug("Got NOTIFY without body, ignoring") return