Replaces IOError by OSError (#26428)

This commit is contained in:
Franck Nijhof authored and Pascal Vizeli committed 2019-09-04 19:09:24 +02:00
1 parent 4004879ae0
commit 0df1b4c7a1
20 files changed
+24 -24

No files matched your search

+1 -1
View File
@@ -171,7 +171,7 @@ def _setup_bme680(config):
sensor.select_gas_heater_profile(0)
else:
sensor.set_gas_status(bme680.DISABLE_GAS_MEAS)
except (RuntimeError, IOError):
except (RuntimeError, OSError):
_LOGGER.error("BME680 sensor not detected at 0x%02x", i2c_address)
return None