core/tests/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
..
__init__.py
conftest.py
test_alarm_control_panel.py
test_binary_sensor.py
test_button.py
test_camera.py
test_client.py Cleanup unneeded assignment of hass property on MQTT Template objects (#123706) 2024-08-12 19:20:21 +02:00
test_climate.py Climate validate temperature(s) out of range (#118649) 2024-07-31 19:17:53 +02:00
test_common.py Support `DeviceInfo.model_id` in MQTT integration (#123152) 2024-08-04 23:02:41 +02:00
test_config_flow.py Fix implicit-return in test schema extractions (#122787) 2024-07-29 22:16:00 +02:00
test_cover.py
test_device_tracker.py
test_device_trigger.py
test_diagnostics.py
test_discovery.py
test_event.py
test_fan.py Add TURN_OFF/TURN_ON feature flags for fan (#121447) 2024-07-19 11:35:24 +02:00
test_humidifier.py
test_image.py
test_init.py Allow raw mqtt payload to be in mqtt publish action (#123900) 2024-08-16 13:34:14 +02:00
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_notify.py
test_number.py
test_scene.py
test_select.py Use TypeVar defaults for Generator (#122170) 2024-07-19 13:06:45 +02:00
test_sensor.py
test_siren.py
test_subscription.py
test_switch.py Add command_template option to mqtt switch schema (#122103) 2024-07-19 12:10:49 +02:00
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