hass-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
test_config_flow.py
test_cover.py
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
test_event.py
test_fan.py
test_humidifier.py
test_image.py
test_init.py
test_lawn_mower.py
test_legacy_vacuum.py
test_light.py
test_light_json.py
test_light_template.py
test_lock.py
test_mixins.py
test_number.py
test_scene.py
test_select.py
test_sensor.py
test_siren.py
test_subscription.py
test_switch.py
test_tag.py
test_text.py
test_trigger.py
test_update.py
test_util.py
test_vacuum.py
test_valve.py
test_water_heater.py