core/homeassistant/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
..
light
__init__.py
abbreviations.py
alarm_control_panel.py
binary_sensor.py
button.py
camera.py
client.py
climate.py Set TURN_ON and TURN_OFF feature on MQTT climate entities (#109146) 2024-01-30 19:35:46 +01:00
config.py
config_flow.py
config_integration.py
const.py
cover.py
debug_info.py
device_automation.py
device_tracker.py
device_trigger.py Simplify MQTT device triggers in automations (#108309) 2024-01-30 20:50:39 +01:00
diagnostics.py
discovery.py
event.py
fan.py
humidifier.py
image.py
lawn_mower.py
lock.py
manifest.json
mixins.py
models.py
number.py
scene.py
select.py
sensor.py
services.yaml
siren.py
strings.json
subscription.py
switch.py
tag.py
text.py
trigger.py
update.py
util.py
vacuum.py
valve.py
water_heater.py