File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -347,11 +347,11 @@ def apci_device_descriptor_read(self, target):
347347 sequence = self .tpci_seq_counts .get (target ))
348348 value = yield from self .send_data (tunnel_request .get_message (), target )
349349 yield from self .tpci_send_ncd (target )
350- cemi = value . body . get ( 'cemi' )
351- if isinstance ( value , KnxTunnellingRequest ) and \
352- cemi .get ('apci' ).get ('type' ) == CEMI_APCI_TYPES .get ('A_DeviceDescriptor_Response' ) and \
353- cemi .get ('data' ):
354- return value .body .get ('cemi' ).get ('data' )
350+ if isinstance ( value , KnxTunnellingRequest ):
351+ cemi = value . body . get ( 'cemi' )
352+ if cemi .get ('apci' ).get ('type' ) == CEMI_APCI_TYPES .get ('A_DeviceDescriptor_Response' ) and \
353+ cemi .get ('data' ):
354+ return value .body .get ('cemi' ).get ('data' )
355355 else :
356356 return False
357357
You can’t perform that action at this time.
0 commit comments