Commit graph

1219 commits

Author SHA1 Message Date
Jan Bouwhuis
9f24897814
Do not reset current selection on reconfig or MQTT select ()
* Do not reset current selection on reconfig

* Add a test
2023-01-04 10:29:53 +01:00
Jan Bouwhuis
b29c96639b
Correct initial config of MQTT climate ()
* Do not reset MQTT climate state on re-config

* More corrections

* Correct startup behavior in optimistic mode
2023-01-04 10:29:02 +01:00
GitHub Action
5169721916 [ci skip] Translation update 2023-01-04 00:22:58 +00:00
Mike K
799d527fb5
Add MQTT climate setting for current humidity ()
* MQTT Climate: Add support for setting the current humidity via MQTT

* MQTT Climate: Add configuration constants related to setting the target humidity

* MQTT Climate: Add support for setting the humidity's state topic & template

* MQTT Climate: Add support for setting the initial humidity

* MQTT Climate: Add support for setting the humidity's command topic & template

* MQTT Climate: Add support for setting the min/max humidity

* MQTT Climate: Fix style & tests

* MQTT Climate: Set the initial humidity to None

* MQTT Climate: Rename _set_mqtt_attribute to _set_climate_attribute and handle_temperature_received to handle_climate_attribute_received

* MQTT Climate: Copy humidity range validation from MQTT Humidifier

* MQTT Climate: Remove CONF_HUMIDITY_INITIAL

* MQTT Climate: Only enable support for TARGET_HUMIDITY when the command topic is set

* MQTT Climate: Check if setting the target humidity is supported before actually setting it

* MQTT Climate: Make sure that CONF_HUMIDITY_COMMAND_TOPIC has been configured when setting CONF_HUMIDITY_STATE_TOPIC

* MQTT Climate: Fix broken tests

* MQTT Climate: Add test for optimistically setting the target humidity

* MQTT Climate: Remove references to "temperature" in handle_climate_attribute_received

* MQTT Climate: Add additional humidity-related tests

* MQTT Climate: Remove supported feature check in handle_target_humidity_received

It's not needed because this is covered by the `valid_humidity_state_configuration` validation.

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

* MQTT Climate: Remove supported feature check in async_set_humidity

It is covered by the base Climate entity.

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2023-01-03 22:57:20 +01:00
Sándor Oroszi
a0d41e1d97
Add hs_command_template and xy_command_template to mqtt light default schema ()
* Add mqtt light hs_command_template

* Add mqtt light xy_command_template
2023-01-03 12:58:00 +01:00
Jan Bouwhuis
9cf86b234b
Add optimistic option for MQTT climate () 2023-01-02 11:39:42 +01:00
GitHub Action
6220804639 [ci skip] Translation update 2023-01-02 00:23:28 +00:00
Jan Bouwhuis
ee66ffc8de
Do not depend MQTT CI tests on debug logs ()
* Do not depend MQTT CI tests on debug logs

* Leave Clean up expire as debug message
2022-12-29 18:29:28 +01:00
GitHub Action
b3ab0a0199 [ci skip] Translation update 2022-12-29 00:23:20 +00:00
GitHub Action
31a3f1100a [ci skip] Translation update 2022-12-24 00:19:43 +00:00
Franck Nijhof
baef267f33
String formatting and max line length - Part 3 () 2022-12-22 13:35:47 +01:00
Jonathan de Jong
b67009dee3
Allow MQTT device trackers to be able to the reset the location name for auto zone inference ()
* adds auto-zone to mqtt device trackers

* black formatting

* abbr

* change abbreviation

* add test

* fade to black

* Modify custom overrides

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

* add custom + abbr payload and fix test docstrings

* change auto_zone to reset

* change RST to None, address isort

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2022-12-20 17:38:40 +01:00
GitHub Action
6b858ce8af [ci skip] Translation update 2022-12-17 00:21:18 +00:00
GitHub Action
cfa08c5229 [ci skip] Translation update 2022-12-15 00:24:38 +00:00
GitHub Action
1e0345a377 [ci skip] Translation update 2022-12-10 00:21:35 +00:00
Jan Bouwhuis
e15388a2a0
Improve MQTT type hints for dict get assignments ()
* Improve type hints for dict get assignments

* Move _expire_after as class attr

* Remove extra check
2022-12-09 16:22:36 +01:00
Marc Mueller
9a97784168
Add types package for paho-mqtt () 2022-12-09 15:27:46 +01:00
Jan Bouwhuis
b4984ea255
Use native _attr_ properties for MqttEntity () 2022-12-09 13:37:26 +01:00
GitHub Action
f25017313a [ci skip] Translation update 2022-12-09 00:24:29 +00:00
Erik Montnemery
c4afc33fc5
Add abc.ABC to classes with abstract methods () 2022-12-08 17:50:36 +01:00
Marc Mueller
25feac1bc4
Fix issue with Callable, Union, and Python 3.9 [mqtt] () 2022-12-08 15:42:40 +01:00
GitHub Action
1f3e5fb4fc [ci skip] Translation update 2022-12-07 00:24:08 +00:00
Jan Bouwhuis
7ed1d4988b
Add QoS parameter to MQTT websocket_subscribe () 2022-12-06 09:31:19 +01:00
GitHub Action
3ab9a14ce7 [ci skip] Translation update 2022-12-06 00:21:31 +00:00
GitHub Action
5f9290e572 [ci skip] Translation update 2022-12-05 00:23:07 +00:00
Joe Rogers
f1ee920463
Handle numeric versions in mqtt update ()
* Handle numeric versions in mqtt update

* Remove need for type:ignore

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2022-12-04 21:52:48 +01:00
Jan Bouwhuis
de77132a5a
Add the QoS in the MQTT debug log ()
Logging the MQTT QoS in the debug log
2022-12-04 15:03:41 +01:00
GitHub Action
03154e1d83 [ci skip] Translation update 2022-12-03 00:21:50 +00:00
GitHub Action
0d1f476bee [ci skip] Translation update 2022-12-01 00:33:36 +00:00
Jan Bouwhuis
89a7d5fecc
Update codeowners for mqtt integration ()
Add @jbouwh to codeowners
2022-11-30 14:55:31 +01:00
Jan Bouwhuis
f180f15bde
Cleanup removed mqtt fan speed config variables () 2022-11-30 13:14:41 +01:00
GitHub Action
197e71203b [ci skip] Translation update 2022-11-30 00:26:16 +00:00
Jan Bouwhuis
2785b2b52f
Add mqtt text platform () 2022-11-29 20:31:05 +01:00
GitHub Action
230b50d099 [ci skip] Translation update 2022-11-29 00:26:01 +00:00
GitHub Action
b65d8cc1b3 [ci skip] Translation update 2022-11-28 00:23:09 +00:00
GitHub Action
4becb9454b [ci skip] Translation update 2022-11-27 00:26:07 +00:00
GitHub Action
797dc51bc5 [ci skip] Translation update 2022-11-26 00:22:30 +00:00
Jan Bouwhuis
e9a9ab9025
Correction in mqtt error string ()
Text correction in mqtt error string
2022-11-25 21:07:08 +01:00
Jan Bouwhuis
4335b0db25
Clean up or correct from removed deprecation for MQTT platform ()
Clean up or correct from removed deprecation
2022-11-25 16:11:22 +01:00
Jan Bouwhuis
95e6faad0a
Set mqtt quality scale to gold () 2022-11-25 13:41:46 +01:00
Jan Bouwhuis
01b0f4d565
Announce a deprecated callback for MQTT subscribe will stop working ()
* Announce a deprecated callback will stop working

* Use 2 months grace period

* Use 2 months grace period

* Use 2 months grace period

* Add deprecation comment to tests
2022-11-25 10:22:12 +01:00
GitHub Action
f3b3193f7a [ci skip] Translation update 2022-11-25 00:24:19 +00:00
Marc Mueller
c0425619e2
Fix round typing [mqtt] () 2022-11-24 14:39:01 +01:00
Jan Bouwhuis
8a8732f0bc
Strict type hints for MQTT integration ()
* Strict type hints for MQTT integration

* Fix errors

* Additional corrections

* Use cv.template to avoid untyped calls

* Enable strict typing policy for MQTT integration

* Use ignore[no-untyped-call]

* Use # type: ignore[unreachable]

* Correct cast

* Refactor getting discovery_payload

* Remove unused type ignore comments
2022-11-24 08:25:44 +01:00
GitHub Action
33d391a110 [ci skip] Translation update 2022-11-24 00:26:32 +00:00
Jan Bouwhuis
23bc39b7f4
Add type hints on Template().__init__() () 2022-11-23 20:26:55 +01:00
Jan Bouwhuis
4f3919cb95
Move mqtt device_tracker files ()
Move mqtt device_tracker files to single file
2022-11-23 16:24:56 +01:00
Jan Bouwhuis
32d68f375b
Add Mqtt WebSockets support ()
* Add Mqtt WebSockets support

* Fix tests

* Add testing websockets options

* Add tests transport settings

* Do not use templates for ws_headers

* Use json helper - small corrections
2022-11-23 15:03:31 +01:00
GitHub Action
eaf6d43508 [ci skip] Translation update 2022-11-23 00:26:26 +00:00
epenet
bf3c6e5f58
Enforce VacuumEntityFeature () 2022-11-22 07:27:27 +01:00