mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 12:30:31 +00:00
Replaces IOError by OSError (#26428)
This commit is contained in:
committed by
Pascal Vizeli
parent
4004879ae0
commit
0df1b4c7a1
@@ -96,7 +96,7 @@ class TemperSensor(Entity):
|
||||
)
|
||||
sensor_value = self.temper_device.get_temperature(format_str)
|
||||
self.current_value = round(sensor_value, 1)
|
||||
except IOError:
|
||||
except OSError:
|
||||
_LOGGER.error(
|
||||
"Failed to get temperature. The device address may"
|
||||
"have changed. Attempting to reset device"
|
||||
|
||||
Reference in New Issue
Block a user