home-assistant-core/tests
Jan Bouwhuis 04f0128a1c
Simplify MQTT device triggers in automations (#108309)
* Simplify MQTT device trigger

* Add test non unique trigger_id

* Adjust deprecation warning

* Make discovery_id optional

* refactor double if

* Improve validation, add tests and deprecation comments

* Avoid breaking change

* Inmprove error message

* Match on discovery_id instead of discovery_info

* Revert an unrelated change

* follow up comments

* Add comment and test on device update with non unique trigger

* Update homeassistant/components/mqtt/device_trigger.py

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

* Update homeassistant/components/mqtt/device_trigger.py

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

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-01-30 20:50:39 +01:00
..
auth Add expiration of unused refresh tokens (#108428) 2024-01-24 13:24:22 -10:00
components Simplify MQTT device triggers in automations (#108309) 2024-01-30 20:50:39 +01:00
fixtures Fix feedreader date comparison to allow RSS entries with identical timestamps (#104925) 2023-12-23 16:48:36 +01:00
hassfest
helpers Add default parameter to as_datetime template function/filter (#107229) 2024-01-29 18:05:44 +01:00
pylint Add pylint plugin to check if coordinator is placed in its own module (#108174) 2024-01-29 10:30:19 +01:00
resources
scripts
snapshots
test_util
testing_config Add icon translations support (#103294) 2024-01-19 16:56:56 +01:00
util Flow rate unit conversions and device class (#106077) 2024-01-30 15:01:08 +01:00
__init__.py
common.py Small speed up to checking core state (#107845) 2024-01-18 08:41:32 -10:00
conftest.py Remove deprecated event_loop fixtures in tests (#109048) 2024-01-29 14:24:58 +01:00
ignore_uncaught_exceptions.py
patch_time.py
ruff.toml
syrupy.py
test_bootstrap.py Remove deprecated event_loop fixtures in tests (#109048) 2024-01-29 14:24:58 +01:00
test_config.py Deprecate legacy_templates (#105556) 2023-12-22 00:42:16 +01:00
test_config_entries.py Small speed up to listing config entries in the websocket api (#108892) 2024-01-25 20:20:19 -10:00
test_const.py Flow rate unit conversions and device class (#106077) 2024-01-30 15:01:08 +01:00
test_core.py Remove deprecated event_loop fixtures in tests (#109048) 2024-01-29 14:24:58 +01:00
test_data_entry_flow.py Fix FlowHandler show progress (#108586) 2024-01-21 22:40:48 +01:00
test_exceptions.py
test_loader.py Avoid keeping config dir in path (#107760) 2024-01-16 13:38:47 +01:00
test_main.py
test_requirements.py
test_runner.py
test_setup.py
test_test_fixtures.py
typing.py