File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -452,7 +452,6 @@ def subscribe_to_ctls(self, function):
452
452
453
453
def _handle_ctl (self , message ):
454
454
the_good_part = message .get_payload ()[0 ][0 ]
455
- _LOGGER .debug ('Message payload: ' + ET .tostring (the_good_part , method = 'xml' ).decode ())
456
455
as_dict = self ._ctl_to_dict (the_good_part )
457
456
if as_dict is not None :
458
457
for s in self .ctl_subscribers :
@@ -464,11 +463,11 @@ def _ctl_to_dict(self, xml):
464
463
# This happens for commands with no response data, such as PlaySound
465
464
# Handle response data with no 'td'
466
465
467
- # return
468
466
if 'type' in result : # single element with type and val
469
- result ['event' ] = "LifeSpan" # seems to always ben LifeSpan type
467
+ result ['event' ] = "LifeSpan" # seems to always be LifeSpan type
468
+ # don't need to update attrib since there's no child
470
469
471
- else :
470
+ else : # non-'type' result with child element that has attribs
472
471
if len (xml ) > 0 : # case where there is child element
473
472
if 'clean' in xml [0 ].tag :
474
473
result ['event' ] = "CleanReport"
You can’t perform that action at this time.
0 commit comments