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 Fix mqtt config validation error handling (#103210) 2023-11-02 10:57:00 +01:00
test_binary_sensor.py Do not fail MQTT setup if binary sensors configured via yaml can't be validated (#102300) 2023-10-19 18:15:21 +02:00
test_button.py Do not fail MQTT setup if buttons configured via yaml can't be validated (#102301) 2023-10-20 08:13:59 +02:00
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 Avoid redundant calls to async_write_ha_state in mqtt device_tracker (#100767) 2023-09-24 12:52:13 +02:00
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 Use ServiceValidationError for invalid fan preset_mode and move check to fan entity component (#104560) 2023-11-29 13:56:51 +01:00
test_humidifier.py Do not fail MQTT setup if humidifiers configured via yaml can't be validated (#102312) 2023-10-19 23:29:49 +02:00
test_image.py Do not fail MQTT setup if images configured via yaml can't be validated (#102313) 2023-10-19 18:50:02 +02:00
test_init.py Small speed up to checking core state (#107845) 2024-01-18 08:41:32 -10:00
test_lawn_mower.py Avoid redundant calls to async_write_ha_state in mqtt lawn_mower (#100795) 2023-09-25 18:03:52 +02:00
test_legacy_vacuum.py Remove MQTT legacy vacuum support (#107274) 2024-01-08 09:22:43 +01:00
test_light.py Do not fail MQTT setup if lights configured via yaml can't be validated (#101649) 2023-10-19 17:34:43 +02:00
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 Avoid redundant calls to async_write_ha_state in MQTT light (#100690) 2023-09-22 13:32:30 +02:00
test_lock.py Allow to reset an mqtt lock to an unknown state (#100985) 2023-09-27 09:50:01 +02:00
test_mixins.py Small speed up to checking core state (#107845) 2024-01-18 08:41:32 -10:00
test_number.py Do not fail MQTT setup if numbers configured via yaml can't be validated (#102316) 2023-10-20 10:51:14 +02:00
test_scene.py
test_select.py Fix mqtt tests modifying globals (#105774) 2023-12-15 08:15:10 +01:00
test_sensor.py Update m* tests to use entity & device registry fixtures (#103980) 2023-11-15 10:33:11 +01:00
test_siren.py Avoid redundant calls to async_write_ha_state in mqtt siren (#100813) 2023-09-25 22:36:13 +02:00
test_subscription.py
test_switch.py Avoid redundant calls to async_ha_write_state in mqtt switch (#100815) 2023-09-25 18:06:19 +02:00
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 Avoid redundant calls to async_ha_write_state mqtt update platform (#100819) 2023-09-25 18:08:02 +02:00
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 Avoid redundant calls to async_write_ha_state in MQTT climate & water_heater (#100696) 2023-09-22 11:22:57 +02:00