This commit is contained in:
Jack Robison 2018-07-28 23:56:48 -04:00
parent 788b3c5dba
commit dc5ed393d6
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -81,6 +81,7 @@ class Gateway(object):
log.info("querying %s", self.location)
response = yield treq.get(self.location)
response_xml = yield response.content()
if response_xml:
self._device = RootDevice(response_xml)
if not self._device.devices or not self._device.services:
log.error("failed to parse device: \n%s", response_xml)