Replaces IOError by OSError (#26428)
This commit is contained in:
parent
4004879ae0
commit
0df1b4c7a1
20 changed files with 24 additions and 24 deletions
|
@ -157,7 +157,7 @@ class KeyboardRemoteThread(threading.Thread):
|
|||
|
||||
try:
|
||||
event = self.dev.read_one()
|
||||
except IOError: # Keyboard Disconnected
|
||||
except OSError: # Keyboard Disconnected
|
||||
self.dev = None
|
||||
self.hass.bus.fire(
|
||||
KEYBOARD_REMOTE_DISCONNECTED,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue