mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
parent
e632a47772
commit
4d41c5cd0f
@ -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:
|
except (ConnectionRefusedError, OSError):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
self._pwstate = self.telnet_request(telnet, 'PW?')
|
self._pwstate = self.telnet_request(telnet, 'PW?')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user