ValueError never happens only DecimalException

This commit is contained in:
Diogo Gomes
2022-02-14 21:47:27 +00:00
parent 94395e4c2d
commit 1a7fe02113

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