core/tests/components/mqtt
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
..
__init__.py
conftest.py
test_alarm_control_panel.py
test_binary_sensor.py
test_button.py
test_camera.py
test_climate.py Set TURN_ON and TURN_OFF feature on MQTT climate entities (#109146) 2024-01-30 19:35:46 +01:00
test_common.py Add serial_number attribute to MQTT device properties (#108105) 2024-01-16 14:02:34 +01:00
test_config_flow.py Improve invalid error messages in the config flows (#108075) 2024-01-30 12:24:19 +01:00
test_cover.py Refactor ranging utils for mqtt cover (#105739) 2023-12-21 11:54:05 +01:00
test_device_tracker.py
test_device_trigger.py Simplify MQTT device triggers in automations (#108309) 2024-01-30 20:50:39 +01:00
test_diagnostics.py
test_discovery.py Remove MQTT legacy vacuum support (#107274) 2024-01-08 09:22:43 +01:00
test_event.py Fix MQTT retained event messages should be discarded (#106425) 2023-12-27 12:48:53 +01:00
test_fan.py
test_humidifier.py
test_image.py
test_init.py Small speed up to checking core state (#107845) 2024-01-18 08:41:32 -10:00
test_lawn_mower.py
test_legacy_vacuum.py Remove MQTT legacy vacuum support (#107274) 2024-01-08 09:22:43 +01:00
test_light.py
test_light_json.py Use unknown color_mode for MQTT json lights if color mode is not set (#108909) 2024-01-26 14:42:47 +01:00
test_light_template.py
test_lock.py
test_mixins.py Small speed up to checking core state (#107845) 2024-01-18 08:41:32 -10:00
test_number.py
test_scene.py
test_select.py
test_sensor.py
test_siren.py
test_subscription.py
test_switch.py
test_tag.py Add serial_number attribute to MQTT device properties (#108105) 2024-01-16 14:02:34 +01:00
test_text.py Fix mqtt text text min max config params can not be equal (#107738) 2024-01-11 07:17:48 +01:00
test_trigger.py
test_update.py
test_util.py Small speed up to checking core state (#107845) 2024-01-18 08:41:32 -10:00
test_vacuum.py Remove MQTT legacy vacuum support (#107274) 2024-01-08 09:22:43 +01:00
test_valve.py Fix mqtt valve is not resetting opening or closing state (#106240) 2023-12-23 15:18:44 +01:00
test_water_heater.py