hass-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 Import Generator from collections.abc (3) (#120916) 2024-07-01 12:09:11 +02:00
test_alarm_control_panel.py Cleanup mqtt platform tests part 5 (#120719) 2024-06-28 09:22:56 -05:00
test_binary_sensor.py Cleanup mqtt platform tests part 5 (#120719) 2024-06-28 09:22:56 -05:00
test_button.py Cleanup mqtt platform tests part 5 (#120719) 2024-06-28 09:22:56 -05:00
test_camera.py Cleanup mqtt platform tests part 5 (#120719) 2024-06-28 09:22:56 -05:00
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 Cleanup mqtt platform tests part 5 (#120719) 2024-06-28 09:22:56 -05:00
test_device_tracker.py Cleanup mqtt platform tests part 6 (last) (#120736) 2024-06-28 09:22:25 -05:00
test_device_trigger.py Use service_calls fixture in mqtt tests (#120984) 2024-07-02 11:23:46 +02:00
test_diagnostics.py Cleanup mqtt platform tests part 2 (#120490) 2024-06-26 08:53:28 +02:00
test_discovery.py Fix blocking I/O in mqtt tests (#121140) 2024-07-04 05:13:13 +01:00
test_event.py Cleanup mqtt platform tests part 6 (last) (#120736) 2024-06-28 09:22:25 -05:00
test_fan.py Add TURN_OFF/TURN_ON feature flags for fan (#121447) 2024-07-19 11:35:24 +02:00
test_humidifier.py Cleanup mqtt platform tests part 6 (last) (#120736) 2024-06-28 09:22:25 -05:00
test_image.py Cleanup mqtt platform tests part 6 (last) (#120736) 2024-06-28 09:22:25 -05:00
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 Cleanup mqtt platform tests part 5 (#120719) 2024-06-28 09:22:56 -05:00
test_legacy_vacuum.py Remove schema option for mqtt vacuum configs (#121093) 2024-07-03 21:35:20 +02:00
test_light.py Cleanup mqtt platform tests part 5 (#120719) 2024-06-28 09:22:56 -05:00
test_light_json.py Cleanup mqtt platform tests part 5 (#120719) 2024-06-28 09:22:56 -05:00
test_light_template.py Cleanup mqtt platform tests part 5 (#120719) 2024-06-28 09:22:56 -05:00
test_lock.py Cleanup mqtt platform tests part 5 (#120719) 2024-06-28 09:22:56 -05:00
test_mixins.py Cleanup mqtt platform tests part 5 (#120719) 2024-06-28 09:22:56 -05:00
test_notify.py Cleanup mqtt platform tests part 5 (#120719) 2024-06-28 09:22:56 -05:00
test_number.py Cleanup mqtt platform tests part 5 (#120719) 2024-06-28 09:22:56 -05:00
test_scene.py Cleanup mqtt platform tests part 5 (#120719) 2024-06-28 09:22:56 -05:00
test_select.py Use TypeVar defaults for Generator (#122170) 2024-07-19 13:06:45 +02:00
test_sensor.py Cleanup mqtt platform tests part 6 (last) (#120736) 2024-06-28 09:22:25 -05:00
test_siren.py Cleanup mqtt platform tests part 6 (last) (#120736) 2024-06-28 09:22:25 -05:00
test_subscription.py Cleanup mqtt platform tests part 6 (last) (#120736) 2024-06-28 09:22:25 -05:00
test_switch.py Add command_template option to mqtt switch schema (#122103) 2024-07-19 12:10:49 +02:00
test_tag.py Import Generator from collections.abc (3) (#120916) 2024-07-01 12:09:11 +02:00
test_text.py Cleanup mqtt platform tests part 6 (last) (#120736) 2024-06-28 09:22:25 -05:00
test_trigger.py Use service_calls fixture in mqtt tests (#120984) 2024-07-02 11:23:46 +02:00
test_update.py Cleanup mqtt platform tests part 6 (last) (#120736) 2024-06-28 09:22:25 -05:00
test_util.py Add fixture to synchronize with debouncer in MQTT tests (#120373) 2024-06-25 14:26:20 +02:00
test_vacuum.py Remove schema option for mqtt vacuum configs (#121093) 2024-07-03 21:35:20 +02:00
test_valve.py Cleanup mqtt platform tests part 6 (last) (#120736) 2024-06-28 09:22:25 -05:00
test_water_heater.py Cleanup mqtt platform tests part 6 (last) (#120736) 2024-06-28 09:22:25 -05:00