When the device is disconnected from Speedport, the router removes the device from the list and makes the device to None state. Whenever the device is requested for an attribute, because of None, it throws the AttributeError.
I tested these changes on my Speedport.
When the device is connected to Wi-Fi.
Then when I disconnected my device, it shows below.
I'm not good at Python, and I know that this solution is quick and dirty, but it works!
This PR fixes the issue #16.
When the device is disconnected from Speedport, the router removes the device from the list and makes the
device
toNone
state. Whenever the device is requested for an attribute, because ofNone
, it throws theAttributeError
.I tested these changes on my Speedport.
When the device is connected to Wi-Fi.
Then when I disconnected my device, it shows below.
I'm not good at Python, and I know that this solution is quick and dirty, but it works!