This commit is contained in:
Jack Robison 2018-07-28 23:49:22 -04:00
parent 73ef4e6adc
commit bf9e4a90d2
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 4 additions and 1 deletions

View file

@ -82,8 +82,10 @@ class Gateway(object):
def discover_services(self):
log.info("querying %s", self.location)
response = yield treq.get(self.location)
response_xml = yield response.text()
response_xml = yield response.content()
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)
@property
def services(self):

View file

@ -155,6 +155,7 @@ class SCPDCommandRunner(object):
@staticmethod
def _soap_function_info(action_dict):
if not action_dict.get('argumentList'):
log.warning("don't know how to handle argument list: %s", action_dict)
return (
action_dict['name'],
[],