mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
ValueError never happens only DecimalException
This commit is contained in:
@@ -229,8 +229,6 @@ class UtilityMeterSensor(RestoreEntity, SensorEntity):
|
|||||||
return
|
return
|
||||||
self._state += adjustment
|
self._state += adjustment
|
||||||
|
|
||||||
except ValueError as err:
|
|
||||||
_LOGGER.warning("While processing state changes: %s", err)
|
|
||||||
except DecimalException as err:
|
except DecimalException as err:
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"Invalid state (%s > %s): %s", old_state.state, new_state.state, err
|
"Invalid state (%s > %s): %s", old_state.state, new_state.state, err
|
||||||
|
Reference in New Issue
Block a user