Jan Bouwhuis
31f845bfe0
Add current_humidity attribute to mqtt humidifier ( #94955 )
2023-06-21 19:19:26 +02:00
Jan Bouwhuis
4def901ecc
Ignore empty status update for mqtt number ( #94800 )
2023-06-20 23:04:01 +02:00
Erik Montnemery
fd822bce56
Replace assert_lists_same with pytest_unordered in integrations h-m ( #94901 )
2023-06-20 20:16:25 +02:00
Franck Nijhof
be05a749c5
Add preheating HVAC action to climate ( #94677 )
...
* Add preheating HVAC action to climate
* Fix MQTT tests
2023-06-15 22:16:12 -04:00
Jan Bouwhuis
82b9a31ea7
Improve logging of mqtt discovery message errors ( #94491 )
...
* Improve logging on mqtt discovery message errors
* Create shared helper
* Apply suggestion
* Catch base class vol.Invalid
2023-06-12 21:28:28 +02:00
Jan Bouwhuis
c756c7aceb
Cleanup help_setup_helper in common mqtt tests ( #94482 )
2023-06-12 20:18:05 +02:00
Jan Bouwhuis
c984604a6c
Refactor some mqtt tests not the just use schema validation ( #94330 )
...
Remove help_test_validate_platform_config
2023-06-09 12:30:26 +02:00
hookedonunix
18cbc9b4c3
Add Water Heater platform to MQTT integration ( #93644 )
...
* Add Water Heater entity to MQTT
* Adding tests for Water Heater
* Remove duplicate line and unneeded var declaration
* Remove target temp range and away mode
* Move common Temperature Control conf to const
* Remove unnecessary platform schema and temp check
* Add common value template key test
* Use MqttTemperatureControl in Water Heater
* Move operation mode out of MqttTemperatureControl
* Remove unecessary attribute declaration
* Remove default min/max temp and auto init attr
* Fix mqtt water heater initial temp conversion
* Make async_set_temperature common
* Fix init temp comment
* Merge value_template_keys into get_with_templates
* Remove unnecessary operation_mode overriding
* Add async_set_temperature to water heater
* Fix docstring comments
2023-06-08 17:38:30 +02:00
Jan Bouwhuis
437de7c2a3
Fix mqtt climate initial temperature conversion and precision ( #93965 )
...
* Fix mqtt climate initial temperature conversion
* Avoid changing hass temperature_unit
* Update comment
2023-06-05 17:02:31 +02:00
Jan Bouwhuis
661aedde90
Remove MQTT platform schema warnings ( #93785 )
2023-05-31 09:02:48 +02:00
Jan Bouwhuis
3a7f9ab57d
Remove mqtt sensor support for last_reset_topic
( #93792 )
...
* Remove mqtt sensor support for `last_reset_topic`
* Add cases for empty last reset messages
2023-05-30 21:07:07 -04:00
Jan Bouwhuis
c44a7fe358
Do not trigger reload when unloading or reloading MQTT entry ( #93588 )
...
* Do not trigger reload when unloading MQTT entry
* More cleanup
* cleanup async_reload_manual_mqtt_items
* Add test
* Improve test
* Remove unuse mocks from test
* Add discovery item in test
2023-05-29 15:44:09 +02:00
Jan Bouwhuis
d852ba8b09
Remove redundant stub_blueprint_populate fixture for MQTT integration ( #93570 )
...
Remove redundant stub_blueprint_populate fixture
2023-05-26 08:13:45 +02:00
Jan Bouwhuis
ec98e22330
Add type hints for stub_blueprint_populate fixture ( #93568 )
...
Add typehints for stub_blueprint_populate fixture
2023-05-26 08:13:13 +02:00
Erik Montnemery
3cca338c6e
Improve blueprint test fixtures ( #93519 )
2023-05-25 13:45:19 +02:00
Jan Bouwhuis
a81fe517c1
Make mqtt device_tracker state_topic optional when json_attribute_topic is used ( #93322 )
...
* Make device_tracker state_topic optional
* No state_topic needed
2023-05-22 15:49:18 +02:00
Jan Bouwhuis
a05c20a498
Filter replaying unrelated retained MQTT messages when subscribing to share topics ( #88826 )
...
* Do not replay already processed retained subscr.
* Add tests
* Always replay wildcards
* Update tests for debouncer
* Rework for retained topics
* Fix test
* Correct comment
* Add cleanup and test
* Fix key error
* Correct helper
* Rename mock
* Add comment on function _retained_init
* Always replay initial retained payload
* Apply suggestion moving msg.retain to outer check
* Improve test on edge case
* Improve comment formatting
* Follow up comment - improve comments on test
* Update homeassistant/components/mqtt/client.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-05-12 15:23:05 +02:00
Jan Bouwhuis
25549eed85
Debounce and group mqtt unsubscribes ( #92201 )
...
* Debounce MQTT unsubscribes and merge to one call
* Make _async_unsubscribe a callback
* Make sure unsubscribes are processed
* Move debug log out of lock
* Reduce calls and raise outside lock
* Cancel any unsubscribe when queing
* Copy pending unsubscribes
* Only convert topics to list once
* No copy needed
* Typo in comment
2023-05-09 16:36:19 +02:00
Jan Bouwhuis
689c6fbef7
Merge pending MQTT subscribes to a single call to the paho client ( #92172 )
...
* Merge mqtt subscribes in one call
* Cleanup
* cleanup, log outside of lock
* Remove function wrapper
* Add test that we bundle subscriptions
2023-05-08 15:37:25 +02:00
Jan Bouwhuis
cff7829a8d
Fix mqtt subscribe debouncer initial delay too long when birth message is disabled ( #92188 )
...
Fix mqtt subscribe deboucer initial delay
2023-04-28 18:56:22 +02:00
Jan Bouwhuis
aab7dffdb9
Only expose MQTT advanced settings in advanced mode ( #91996 )
2023-04-25 22:23:17 +02:00
Erik Montnemery
63f3767a29
Include UUID in hassio discovery data ( #91970 )
2023-04-25 09:48:47 +02:00
rubenbe
2f1a5942ab
Add MQTT fan direction support ( #91700 )
...
* Add MQTT fan direction support
* Add MQTT fan direction abbreviations
* Add MQTT fan direction tests
* Shorten MQTT fan test payloads
2023-04-24 11:48:00 +02:00
Jan Bouwhuis
9197316b57
Add tests mqtt light with single supported color_mode ( #91811 )
2023-04-22 13:55:43 +02:00
Jan Bouwhuis
0bcda9fe9c
Make sure MQTT client is available when starting depending platforms ( #91164 )
...
* Make sure MQTT is available starting mqtt_json
* Wait for mqtt client
* Sync client connect
* Simplify
* Addiitional tests async_wait_for_mqtt_client
* Improve comment waiting for mqtt
* Improve docstr
* Do not wait unless the MQTT client is in setup
* Handle entry errors during setup
* More comments - do not clear event
* Add snips and mqtt_room
* Add manual_mqtt
* Update homeassistant/components/mqtt/__init__.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Use a fixture, improve tests
* Simplify
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-04-20 08:07:35 +02:00
Jan Bouwhuis
4132f08146
Remove check on remove deprecated call back for mqtt subscribe ( #91464 )
...
Remove check on deprecated callback wrapper
2023-04-18 16:02:24 +02:00
Jan Bouwhuis
f37b1fc9f8
Improve tests subscribe connection for mqtt status ( #91463 )
...
Improve test_subscribe_connection_status
2023-04-15 15:29:31 -04:00
Jan Bouwhuis
fc8c5f1bbd
Do not allow mqtt lights to set brightness to zero ( #91296 )
...
* Do not allow mqtt lights to set brightness to zero
* Loglevel to debug
* Typo
2023-04-14 09:01:29 +02:00
Jan Bouwhuis
e36fd5f222
Allow None device_class and UOM for mqtt entities ( #91240 )
...
* Allow None device_class and UOM for mqtt entities
* Rever not needed changes
* Revert another unwanted change
2023-04-12 19:14:16 +02:00
Jan Bouwhuis
bb15923968
Rename MQTT entry mock and cleanup ( #91223 )
...
Rename to mqtt_mock_entry and cleanup
2023-04-12 09:43:03 +02:00
Jan Bouwhuis
aa68d1d617
Cleanup mqtt CONFIG_SCHEMA_ENTRY ( #90791 )
2023-04-11 17:41:38 +02:00
Jan Bouwhuis
4a0d3e881a
Rework MQTT config merging and adding defaults ( #90529 )
...
* Cleanup config merging and adding defaults
* Optimize and update tests
* Do not mix entry and yaml config
* Make sure hass.data is initilized
* remove check on get_mqtt_data
* Tweaks to MQTT client
* Remove None assigment mqtt client and fix mock
2023-04-04 18:12:18 +02:00
Jan Bouwhuis
9965d9d81d
Fix mqtt device_tracker is not reloading yaml ( #90639 )
2023-04-01 15:17:53 -04:00
Jan Bouwhuis
14ffda9758
Remove dependency on async_setup from mqtt integration ( #87987 )
...
* Remove async_setup from mqtt integration
* Final update common tests
* Related tests init
* Related tests diagnostics
* Related tests config_flow
* Cleanup and correct test
* Keep websockets_api commands in async_setup
2023-03-28 09:37:07 +02:00
Jan Bouwhuis
7364e6ecb3
Remove incorrect parametrize decorator ( #90219 )
2023-03-24 09:38:43 +01:00
Jan Bouwhuis
1224b1aff6
Use helper on tests MQTT fan platform ( #90196 )
...
Use helper on tests fan
2023-03-24 08:42:23 +01:00
Jan Bouwhuis
f2b4c95a04
Prepare MQTT platform tests part7 ( #90130 )
...
* Tests select
* Tests sensor
* Deduplicate test code
2023-03-24 08:42:00 +01:00
Jan Bouwhuis
0570405a3c
Prepare MQTT platform tests part6 ( #90129 )
...
* Tests lock
* Tests mixins
* Tests number
* Tests scene
2023-03-24 08:41:36 +01:00
Jan Bouwhuis
a404d5f6d7
Prepare MQTT platform tests part5 ( #90108 )
...
* Tests light_json
* Tests light_template
* Tests light
2023-03-24 08:41:04 +01:00
Jan Bouwhuis
185d6d74d7
Prepare MQTT platform tests part9 ( #90133 )
...
* Tests switch
* Tests text
* Tests update
2023-03-23 19:17:27 +01:00
Jan Bouwhuis
db63c8584e
Prepare MQTT platform tests part8 ( #90132 )
...
* Tests state_vacuum
* Tests siren
2023-03-23 19:16:54 +01:00
Jan Bouwhuis
2c1b59be0e
Prepare MQTT platform tests part4 ( #90107 )
...
* Tests humidifier
* Tests legacy_vacuum
2023-03-23 19:14:44 +01:00
Jan Bouwhuis
44add1dc11
Prepare MQTT platform tests part3 ( #90106 )
...
* Tests cover
* Tests fan
2023-03-23 19:14:08 +01:00
Jan Bouwhuis
8fd88d6703
Prepare MQTT platform tests part2 ( #90105 )
...
* Tests button
* Tests camera
* Tests climate
2023-03-23 19:13:36 +01:00
Jan Bouwhuis
214286acb9
Prepare MQTT platorm tests part1 ( #90051 )
...
* Add help_custom_config
* Tests alarm_control_panel
* Tests binary_sensor
* Only use help_custom_config with iterable options
2023-03-22 10:23:08 +01:00
Jan Bouwhuis
d865440012
Prepare MQTT common tests part3 ( #90022 )
2023-03-21 09:19:20 +01:00
Jan Bouwhuis
fe49861e26
Prepare MQTT common tests part4 ( #90023 )
...
* Upd test_setting_attribute_via_mqtt_json_message
* Update test_setting_attribute_with_template
* Update test_update_with_json_attrs_not_dict
* Update test_update_with_json_attrs_bad_json
2023-03-21 09:07:46 +01:00
Jan Bouwhuis
91dbda1ce7
Add mqtt common tests for availability (part2) ( #89805 )
...
* update test_availability_when_connection_lost
* Adjust test_availability_without_topic
* Update test_default_availability_payload + helper
* Update test_default_availability_list_payload
* Use helper for async_setup_component
* Update test_default_availability_list_*
* Update test_custom_availability_payload
2023-03-21 08:20:37 +01:00
epenet
ff8b91aeea
Add freezer to known test fixtures in pylint ( #89825 )
...
Add freezer to known fixtures in pylint
2023-03-16 22:39:41 -04:00
Jan Bouwhuis
6e25abfdcc
Fix typo in docstr ( #89804 )
2023-03-16 16:54:26 +01:00