Erik Montnemery
789a14fc44
Add support for last_reset to MQTT sensor ( #51036 )
...
* Add support for last_reset to MQTT sensor
* Update abbreviations
* Improve test coverage
2021-05-26 11:50:29 +02:00
Erik Montnemery
dc65f279a7
Add support for state_class to MQTT sensor ( #50927 )
2021-05-21 17:37:26 +02:00
Michael Klamminger
7c7432a582
Add entity_id to mqtt sensor templates ( #50773 )
...
* Add entity_id to mqtt sensor
* update test comment
2021-05-19 14:38:18 +02:00
Erik Montnemery
8ad3c65645
Allow MQTT entities to be disabled by default ( #48284 )
...
* Allow MQTT entities to be disabled by default
* Tweak
2021-03-30 00:09:14 +02:00
Erik Montnemery
84226da404
Update tests i-o to use async_get() instead of async_get_registry() ( #47653 )
2021-03-09 14:32:08 +01:00
Erik Montnemery
d60fc0de38
Add availability_mode "all" and "any" to MQTT entities ( #44987 )
...
* Add availability_mode "all" to MQTT entities
* Add availability mode any
2021-01-11 16:04:22 +01:00
Ville Skyttä
2fb3be50ab
Make DeviceRegistry.async_get_device connections arg optional ( #44897 )
...
* Make async_get_device connections Optional, default None
* Remove unnecessary async_get_device connections arg usages
Some of these were using an incorrect collection type, which didn't
cause issues mostly just due to luck.
2021-01-07 13:49:45 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Erik Montnemery
306ee30574
Enable MQTT discovery by default ( #41361 )
2020-10-07 14:51:06 +02:00
Erik Montnemery
c777647233
Drop legacy_patchable_time from MQTT tests ( #41287 )
2020-10-05 21:39:44 +02:00
Erik Montnemery
4d6e694d14
Fix discovery update of MQTT state templates ( #39901 )
2020-09-10 20:52:23 +02:00
Erik Montnemery
4ed1f8023b
Suppress MQTT discovery updates without changes ( #38568 )
2020-08-06 10:43:47 +02:00
Erik Montnemery
fb3049d6a2
Set MQTT sensor to state unavailable when value expires ( #36609 )
2020-07-08 16:20:19 -07:00
Erik Montnemery
4b3ad0a1cd
Support multiple MQTT availability topics ( #37418 )
...
* Support multiple MQTT availability topics
* Make availability list and availability_topic exclusive
* Make availability list and availability_topic exclusive
* Add missing abbreviation
2020-07-04 17:48:34 +02:00
J. Nick Koston
89a9634d35
Use eventloop for scheduling ( #37184 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-06-29 09:39:24 -07:00
Erik Montnemery
280f49540e
Drop use of async_mock_mqtt_component ( #37011 )
2020-06-22 23:59:50 +02:00
Erik Montnemery
16cf16e418
Update MQTT tests to not create duplicated config entries ( #36833 )
2020-06-15 15:38:56 -07:00
Erik Montnemery
35cd6b9abf
Remove unused parameter for MQTT discovery ( #36526 )
...
* Remove unused parameter for MQTT discovery
* Fix tests
2020-06-07 19:35:35 +02:00
definitio
ad5101c5c0
Set state for MQTT entities to 'unavailable' when no connection to broker ( #36479 )
...
* Report 'unavailable' state when not connected
to MQTT broker
* Fix tests
* Rewrite to remove the polling
* Add tests
* Add some fixes
2020-06-07 09:21:16 +02:00
Paulus Schoutsen
276f3afb00
Do async_setup_platform in background ( #36244 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-05-31 22:18:30 -07:00
Erik Montnemery
f1ecac92df
Fail tests if wrapped callbacks or coroutines throw ( #35010 )
2020-05-06 14:14:57 -07:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Erik Montnemery
fb93b79b12
Add MQTT debug info ( #33461 )
...
* Add MQTT debug info
* Tweaks
* Tweaks
2020-04-01 10:00:40 -07:00
Erik Montnemery
9508c51403
Fix change of entity_id for discovered MQTT entities ( #33444 )
2020-03-30 14:26:59 -07:00
Erik Montnemery
e0d2e5dcb0
Remove deprecated features from MQTT platforms ( #32909 )
...
* Remove deprecated features
* Lint
2020-03-18 22:39:15 -07:00
Erik Montnemery
86d48c608e
Deduplicate MQTT tests ( #32874 )
2020-03-17 02:09:19 -05:00
Erik Montnemery
8bc542776b
Cleanup entity and device registry on MQTT discovery removal ( #32693 )
...
* Cleanup entity and device registry on MQTT discovery removal.
* Review comments
2020-03-11 18:00:47 -07:00
Erik Montnemery
f7ddbc7e1e
Remove duplicated config from MQTT tests ( #32689 )
2020-03-11 09:34:19 -07:00
Erik Montnemery
4bb9f1800d
Deduplicate MQTT mixin tests ( #32563 )
...
* Deduplicate MQTT mixin tests
* Remove test of not yet merged function
2020-03-09 09:40:00 -07:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Bas Nijholt
ce5072fc91
use isort to sort imports according to PEP8 for mqtt ( #29649 )
2019-12-08 22:45:26 +05:30
Fabian Affolter
15900094a1
Update MQTT sensor test ( #28449 )
2019-11-01 17:30:37 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Penny Wood
84e6813779
Rename via_hub to via_device ( #24360 )
...
* Rename via_hub to via_device
* Fixed registry interactions
2019-06-10 09:10:44 -07:00
Erik Montnemery
a89c7f8feb
Improve MQTT tests ( #23296 )
...
* Improve MQTT tests
* Tweak
2019-04-22 08:48:50 -04:00
Erik Montnemery
73a7d5e6f4
Drop unnecessary block_till_done, improve tests ( #23252 )
2019-04-19 14:52:23 -07:00
Erik Montnemery
70ba5eb0ef
Add json_attributes_template ( #22981 )
2019-04-18 20:55:10 -07:00
emontnemery
89fc3b2a1b
Disable extra=vol.ALLOW_EXTRA for MQTT platforms. ( #20562 )
2019-01-29 09:29:02 -08:00
emontnemery
648adcc708
Small cleanup of MQTT platforms ( #20503 )
...
* Move CONF_UNIQUE_ID to init
* Sort imports
* Update ordering
2019-01-27 18:54:52 +01:00
emontnemery
85ccd71d39
Update device registry of MQTT sensor ( #20440 )
2019-01-26 10:48:18 -08:00
emontnemery
d1c6eb4f3e
Add JSON attribute topic to MQTT cover ( #20190 )
...
* Add JSON attribute topic to MQTT cover
* Lint
2019-01-17 10:53:52 -08:00
emontnemery
5b53bd6aa0
Move MQTT platforms under the component ( #20050 )
...
* Move MQTT platforms under the component
2019-01-15 17:31:06 +01:00