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
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user