core/tests
Diogo Gomes b211a1faa7
Fix utility meter restore state (#66490)
* 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 24fc04a964.

* address review comment

* always a Decimal
2022-02-15 02:16:30 +01:00
..
auth
backports
components Fix utility meter restore state (#66490) 2022-02-15 02:16:30 +01:00
fixtures Clean up Ambient PWS tests (#64486) 2022-01-19 17:03:53 -07:00
hassfest
helpers Remove entities when config entry is removed from device (#66385) 2022-02-13 17:23:30 +01:00
mock
pylint Add tests for pylint plugins (#65436) 2022-02-03 10:01:02 +01:00
resources
scripts
test_util Update black to 22.1.0 (#65788) 2022-02-05 14:19:37 +01:00
testing_config Support restoring SensorEntity native_value (#66068) 2022-02-08 14:00:26 -08:00
util Add is_ipv4_address and is_ipv6_address utils (#66472) 2022-02-13 15:23:11 -06:00
__init__.py
bandit.yaml
common.py Support restoring SensorEntity native_value (#66068) 2022-02-08 14:00:26 -08:00
conftest.py Drop MQTT import flow (#66160) 2022-02-10 21:09:57 +01:00
ignore_uncaught_exceptions.py
test_bootstrap.py Import persistent notification part 1 (#63898) 2022-01-11 17:24:59 +01:00
test_config.py Bump pytest to 7.0.0 (#65981) 2022-02-08 10:03:27 +01:00
test_config_entries.py Automatically add entry title as name placeholder in reauth (#64078) 2022-01-18 14:18:16 -08:00
test_core.py Protect state.as_dict from mutation (#65693) 2022-02-04 14:45:25 -08:00
test_data_entry_flow.py
test_exceptions.py
test_loader.py Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00
test_main.py
test_requirements.py
test_runner.py
test_setup.py Catch all exceptions on import component/platform (#64930) 2022-01-25 20:39:32 -08:00
test_test_fixtures.py