From 392ec2fc13af48d7633ab71adf5e67bbf15f6ead Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Fri, 19 Oct 2018 16:13:43 -0400 Subject: [PATCH] ignore gateways that don't implement required commands --- aioupnp/gateway.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aioupnp/gateway.py b/aioupnp/gateway.py index 66c3504..3e9ea45 100644 --- a/aioupnp/gateway.py +++ b/aioupnp/gateway.py @@ -179,7 +179,12 @@ class Gateway: await gateway.discover_commands(soap_socket) requirements_met = all([required in gateway._registered_commands for required in required_commands]) if not requirements_met: - log.debug("found gateway, but it does not implement required soap commands") + not_met = [ + required for required in required_commands if required not in gateway._registered_commands + ] + log.warning("found gateway %s at %s, but it does not implement required soap commands: %s", + gateway.manufacturer_string, gateway.location, not_met) + ignored.add(datagram.location) continue else: log.debug('found gateway device %s', datagram.location)