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
Jan Bouwhuis
21987a67e7
Cleanup unneeded assignment of hass property on MQTT Template objects ( #123706 )
...
* Cleanup unneeded assignment of hass property on MQTT Template objects
* Commented out code and unneeded checks
* Consistent assign hass to Template in mqtt tests
* Remove unused hass attribute
* Missed line
2024-08-12 19:20:21 +02:00
Maciej Bieniek
a9d8e47979
Support `DeviceInfo.model_id` in MQTT integration ( #123152 )
...
Add support for model_id
2024-08-04 23:02:41 +02:00
G Johansson
a913587eb6
Climate validate temperature(s) out of range ( #118649 )
...
* Climate temperature out of range
* Fix test sensibo
* use temp converting for min/max
* Fix
* Fix mqtt tests
* Fix honeywell tests
* Fix Balboa tests
* Fix whirlpool test
* Fix teslemetry test
* Fix plugwise test
* Fix tplink test
* Fix generic thermostat test
* Fix modbus test
* Fix fritzbox tests
* Honewell
2024-07-31 19:17:53 +02:00
epenet
fdab23c3f9
Fix implicit-return in test schema extractions ( #122787 )
2024-07-29 22:16:00 +02:00
Marc Mueller
c92d9dcb74
Use TypeVar defaults for Generator ( #122170 )
2024-07-19 13:06:45 +02:00
Jan Bouwhuis
16434b5306
Add command_template option to mqtt switch schema ( #122103 )
2024-07-19 12:10:49 +02:00
G Johansson
ca4c617d4b
Add TURN_OFF/TURN_ON feature flags for fan ( #121447 )
2024-07-19 11:35:24 +02:00
Jan Bouwhuis
5b4dd07189
Deprecate `topic_template` and `payload_template` for mqtt publish action ( #122098 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2024-07-19 10:10:38 +02:00
Jan Bouwhuis
843fae825f
Revert "Remove stale `template_topic` code for mqtt publish service" ( #121758 )
...
Revert "Remove stale `template_topic` code for mqtt publish service (#121604 )"
This reverts commit 5b25c24539
.
2024-07-17 17:56:34 +02:00
Jan Bouwhuis
acb4a92628
Revert "Add mqtt automation publish test with template rendering" ( #121757 )
2024-07-11 09:36:14 +02:00
Jan Bouwhuis
71e5ffb2bd
Add mqtt automation publish test with template rendering ( #121695 )
2024-07-10 21:17:27 +02:00
Jan Bouwhuis
5b25c24539
Remove stale `template_topic` code for mqtt publish service ( #121604 )
2024-07-09 18:22:08 +02:00
G Johansson
26bc37195e
Add defrosting as HVACAction in ClimateEntity ( #121448 )
2024-07-07 18:54:40 +02:00
J. Nick Koston
7002042119
Fix blocking I/O in mqtt tests ( #121140 )
2024-07-04 05:13:13 +01:00
Jan Bouwhuis
2040c285b1
Remove schema option for mqtt vacuum configs ( #121093 )
2024-07-03 21:35:20 +02:00
epenet
e3516be3e3
Use service_calls fixture in mqtt tests ( #120984 )
2024-07-02 11:23:46 +02:00
Marc Mueller
921430d497
Import Generator from collections.abc (3) ( #120916 )
2024-07-01 12:09:11 +02:00
J. Nick Koston
8f98fb2ec4
Fix publish cancellation handling in MQTT ( #120826 )
2024-06-29 11:06:56 -05:00
Jan Bouwhuis
e907c45981
Cleanup mqtt platform tests part 5 ( #120719 )
2024-06-28 09:22:56 -05:00
Jan Bouwhuis
a8f4684929
Cleanup mqtt platform tests part 6 (last) ( #120736 )
2024-06-28 09:22:25 -05:00
Joost Lekkerkerker
03c6e0c55f
Fix SIM300 ( #120725 )
2024-06-28 10:46:02 +02:00
Jan Bouwhuis
f3c76cd698
Split mqtt client tests ( #120636 )
2024-06-27 19:37:43 +02:00
Jan Bouwhuis
32e64f7911
Cleanup mqtt platform tests part 4 (init) ( #120574 )
2024-06-26 16:57:41 -05:00
Marc Mueller
dd6cc82f70
Fix mqtt test fixture usage ( #120602 )
2024-06-26 21:30:30 +02:00
Erik Montnemery
9bbeb5d608
Add primary_config_entry attribute to device registry entries ( #119959 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Robert Resch <robert@resch.dev>
2024-06-26 12:26:24 +02:00
Jan Bouwhuis
c5b7d2d868
Cleanup mqtt platform tests part 3 ( #120493 )
2024-06-26 09:29:40 +02:00
Jan Bouwhuis
e567f8f3d5
Fix issue where an MQTT device is removed linked to two config entries ( #120430 )
...
* Fix issue where an MQTT device is removed linked to two config entries
* Update homeassistant/components/mqtt/discovery.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update homeassistant/components/mqtt/debug_info.py
Co-authored-by: J. Nick Koston <nick@koston.org>
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-06-26 09:14:33 +02:00
Jan Bouwhuis
fab901f9b6
Cleanup mqtt platform tests part 2 ( #120490 )
2024-06-26 08:53:28 +02:00
Jan Bouwhuis
038f2ce79f
Cleanup mqtt platform tests part 1 ( #120470 )
2024-06-26 00:01:57 +02:00
Jan Bouwhuis
cbcf29720d
Cleanup common mqtt tests ( #120446 )
2024-06-25 19:15:11 +02:00
Jan Bouwhuis
aa05f73210
Add fixture to synchronize with debouncer in MQTT tests ( #120373 )
...
* Add fixture to synchronze with debouncer in MQTT tests
* Migrate more tests to use the debouncer
* Migrate more tests
* Migrate util tests
* Improve mqtt on_callback test using new fixture
* Improve test_subscribe_error
* Migrate other tests
* Import EnsureJobAfterCooldown from `util.py` but patch `client.py`
2024-06-25 14:26:20 +02:00
Jan Bouwhuis
1d16cbec96
Move mqtt debouncer to mqtt utils ( #120392 )
2024-06-25 10:33:58 +02:00
Jan Bouwhuis
a7200a70b2
Set up mqtt tests from client fixture of mqtt entry setup fixture, not both ( #120274 )
...
* Fix entry setup and cleanup issues in mqtt tests
* Reduce changes by using mqtt_client_mock alias
* Reduce sleep time where possibe
2024-06-24 19:42:32 +02:00
Jan Bouwhuis
85720f9e02
Fix setup and tear down issues for mqtt discovery and config flow tests ( #120333 )
...
* Fix setup and tear down issues for mqtt discovery and config flow tests
* Use async callback
2024-06-24 16:20:44 +02:00
Jan Bouwhuis
389b9d1ad6
Make sure ACK's are processed before mqtt tests are teared down ( #120329 )
2024-06-24 15:16:09 +02:00
Jan Bouwhuis
f1fd52bc30
Fix issue in mqtt fixture calling disconnect handler ( #120246 )
2024-06-23 10:37:08 -05:00
Jan Bouwhuis
60ba80a28d
Only (re)subscribe MQTT topics using the debouncer ( #119995 )
...
* Only (re)subscribe using the debouncer
* Update test
* Fix test
* Reset mock
2024-06-19 23:57:18 +02:00
Jan Bouwhuis
6eb9d1e01d
Gracefully disconnect MQTT entry if entry is reloaded ( #119753 )
2024-06-18 09:29:22 +02:00
Paulus Schoutsen
eb89ce47ea
Inline primary integration ( #119860 )
2024-06-18 08:08:08 +02:00
Jan Bouwhuis
b405e2f03e
Improve logging use of deprecated `schema` option for mqtt vacuum ( #119724 )
2024-06-15 16:50:12 +02:00
epenet
27ee204e2f
Fix dangerous-default-value warnings in mqtt tests ( #119584 )
2024-06-13 16:51:45 +02:00
epenet
0f0c2f0553
Fix redefined-argument-from-local pylint warning in tests ( #119475 )
2024-06-12 17:58:58 +02:00
epenet
fb1b0058ee
Fix consider-using-tuple pylint warnings in component tests ( #119464 )
...
* Fix consider-using-tuple pylint warnings in component tests
* Apply su
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
---------
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-06-12 15:50:27 +02:00
epenet
2c7022950c
Fix import-outside-toplevel pylint warnings in tests ( #119389 )
2024-06-11 14:57:50 +02:00
Sid
721b2c2ca8
Enable Ruff PT012 ( #113957 )
2024-06-08 17:59:08 +02:00
Marc Mueller
274cd41d57
Fix Generator annotations in tests (1) ( #119018 )
2024-06-07 08:43:32 +02:00
Marc Mueller
7195a21126
Fix Generator annotations in tests (2) ( #119019 )
2024-06-07 08:34:38 +02:00
Marc Mueller
33ed4fd862
Import Generator from typing_extensions (3) ( #118990 )
2024-06-06 17:28:59 +02:00
J. Nick Koston
67b3be8432
Remove useless threading locks in mqtt ( #118737 )
2024-06-04 14:21:03 -05:00