hass-core/tests
Jan Bouwhuis 5ee383456f
Catch exceptions and add logging when writing states on MQTT entities (#89091)
* Catch exceptions when writing states

* Do not use wrapper for logging and adjust tests

* Catch logging directly on async_write_ha_state()

* Update homeassistant/components/mqtt/models.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Fix test

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-03-06 15:34:47 +01:00
..
auth Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
backports Add return type to tests without arguments (#87613) 2023-02-07 14:20:06 +01:00
components Catch exceptions and add logging when writing states on MQTT entities (#89091) 2023-03-06 15:34:47 +01:00
fixtures Unblock JSON CI by fixing improperly indented JSON in test fixture (#88803) 2023-02-26 14:41:16 -06:00
hassfest Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
helpers Fix lingering task in debounce tests (#89019) 2023-03-02 13:01:50 -05:00
pylint Enable Ruff PT006 (#88165) 2023-02-15 14:09:50 +01:00
resources
scripts Allow parameterizing YAML config in tests (#87981) 2023-02-20 16:57:12 +01:00
test_util Adjust json imports in tests (#88248) 2023-02-17 19:13:48 +01:00
testing_config Move sensor rounding to frontend (#87330) 2023-02-04 14:54:36 -05:00
util Fix lingering task in timeout test (#88953) 2023-03-01 09:42:55 +01:00
__init__.py
asyncio_legacy.py Add python 3.11 to the CI (#88038) 2023-02-16 12:38:32 -05:00
bandit.yaml
common.py Pass a helpful name when creating common asyncio tasks in core (#89171) 2023-03-05 12:46:02 +01:00
conftest.py Also set hass.config_entries when mock_hass_config fixture is used (#88669) 2023-02-28 11:14:04 +01:00
ignore_uncaught_exceptions.py
ruff.toml Enable Ruff PT006 (#88165) 2023-02-15 14:09:50 +01:00
syrupy.py Update entity registry snapshot serializer (#88566) 2023-02-21 22:37:13 +01:00
test_bootstrap.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_config.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_config_entries.py Prevent integrations from retrying setup once shutdown has started (#88818) 2023-02-26 22:01:02 -05:00
test_core.py Pass a helpful name when creating common asyncio tasks in core (#89171) 2023-03-05 12:46:02 +01:00
test_data_entry_flow.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_exceptions.py Enable Ruff PT006 (#88165) 2023-02-15 14:09:50 +01:00
test_loader.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_main.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_requirements.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_runner.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_setup.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_test_fixtures.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
typing.py Add MockHAClientWebSocket test helper (#87832) 2023-02-10 10:23:26 -05:00