ValueError never happens only DecimalException

pull/66490/head
Diogo Gomes 2022-02-14 21:47:27 +00:00
parent 94395e4c2d
commit 1a7fe02113
1 changed files with 0 additions and 2 deletions

View File

@ -229,8 +229,6 @@ class UtilityMeterSensor(RestoreEntity, SensorEntity):
return
self._state += adjustment
except ValueError as err:
_LOGGER.warning("While processing state changes: %s", err)
except DecimalException as err:
_LOGGER.warning(
"Invalid state (%s > %s): %s", old_state.state, new_state.state, err