Replaces IOError by OSError (#26428)

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

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