core/homeassistant/components/mqtt
Jan Bouwhuis 183c191d63
Allow raw mqtt payload to be in mqtt publish action (#123900)
* Publish raw rendered mqtt payload as raw for mqtt publish action

* Move check out of try block

* Only try to eval `bytes` is payload starts with supported string

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

* Improve docst

* Add `evaluate_bytes` option to publish action

* Rename to `evaluate_payload`

* Update homeassistant/components/mqtt/strings.json

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

* Extend test to assert literal_eval is called or not

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-08-16 13:34:14 +02:00
..
light
__init__.py Allow raw mqtt payload to be in mqtt publish action (#123900) 2024-08-16 13:34:14 +02:00
abbreviations.py
alarm_control_panel.py
async_client.py
binary_sensor.py
button.py
camera.py
client.py
climate.py
config.py
config_flow.py
config_integration.py
const.py
cover.py
debug_info.py
device_automation.py
device_tracker.py
device_trigger.py
diagnostics.py
discovery.py
event.py
fan.py
humidifier.py
icons.json
image.py
lawn_mower.py
lock.py
manifest.json
mixins.py
models.py Allow raw mqtt payload to be in mqtt publish action (#123900) 2024-08-16 13:34:14 +02:00
notify.py
number.py
scene.py
schemas.py
select.py
sensor.py
services.yaml Allow raw mqtt payload to be in mqtt publish action (#123900) 2024-08-16 13:34:14 +02:00
siren.py
strings.json Allow raw mqtt payload to be in mqtt publish action (#123900) 2024-08-16 13:34:14 +02:00
subscription.py
switch.py
tag.py
text.py
trigger.py
update.py
util.py
vacuum.py
valve.py
water_heater.py