def _on_device_added(self, header): nt_header = header.get('nt', None) if nt_header and nt_header in self.NOTIFICATION_TYPES: return UpnpMediaRendererFactory.from_header( header, CoinedUpnpMediaRenderer)
def _on_device_response(self, header, address): st_header = header.get('st', None) if st_header and st_header in self.NOTIFICATION_TYPES: return UpnpMediaRendererFactory.from_header( header, CoinedUpnpMediaRenderer)