mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 10:17:51 +00:00

* Address #63874 * avoid setting _last_period to None * name is always set in discovery * ValueError never happens only DecimalException * async_tariff_change tracks state change - state machine will not pass a None * test we only reset one utility_meter * test corrupted restored state * pretty sure _current_tariff doesn't change from init until here * missing assert * Revert "async_tariff_change tracks state change - state machine will not pass a None" This reverts commit 24fc04a964139e5cfecbfa20f91e2d30ab145d77. * address review comment * always a Decimal