Replaces IOError by OSError (#26428)
This commit is contained in:
1 parent
4004879ae0
commit
0df1b4c7a1
20 files changed
+24
-24
No files matched your search
@@ -92,7 +92,7 @@ def setup(hass, config):
|
||||
|
||||
try:
|
||||
pilight_client.send_code(message_data)
|
||||
except IOError:
|
||||
except OSError:
|
||||
_LOGGER.error("Pilight send failed for %s", str(message_data))
|
||||
|
||||
hass.services.register(DOMAIN, SERVICE_NAME, send_code, schema=RF_CODE_SCHEMA)
|
||||
|
||||
Reference in new issue
Block a user