From a34d62e256c388a6c788354690fd85e4f9d5ca68 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 11 Oct 2018 18:09:55 -0400 Subject: [PATCH] fix --- aioupnp/upnp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aioupnp/upnp.py b/aioupnp/upnp.py index 19eac13..3f7d180 100644 --- a/aioupnp/upnp.py +++ b/aioupnp/upnp.py @@ -199,7 +199,7 @@ class UPnP: except (UPnPError, NotImplementedError): print("failed to add and remove a mapping") - if self.gateway._device: + if self.gateway.devices: device = list(self.gateway.devices.values())[0] assert device.manufacturer and device.modelName device_path = os.path.join(os.getcwd(), self.gateway.manufacturer_string)