This commit is contained in:
Daniel 2016-09-08 08:43:05 +02:00
parent 1af5d4c8b8
commit b3d2db45de

View File

@ -72,7 +72,7 @@ class DenonDevice(MediaPlayerDevice):
"""Get the latest details from the device.""" """Get the latest details from the device."""
try: try:
telnet = telnetlib.Telnet(self._host) telnet = telnetlib.Telnet(self._host)
except (ConnectionRefusedError, OSError): except OSError:
return False return False
self._pwstate = self.telnet_request(telnet, 'PW?') self._pwstate = self.telnet_request(telnet, 'PW?')