Replaces IOError by OSError (#26428)
This commit is contained in:
parent
4004879ae0
commit
0df1b4c7a1
20 changed files with 24 additions and 24 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue