Erik Montnemery
4448eb94a1
Only subscribe when MQTT client is connected. ( #34557 )
2020-04-22 14:38:04 -07:00
Tom
d6ab36bf8e
Set mqtt binary_sensor unavailable if expire_after specified ( #34259 )
...
* Set self._expired=True if expire_after specified
* Added test_expiration_on_discovery_and_discovery_update_of_binary_sensor to mqtt/test_binary_sensor.py
* Fixed flake8 error
* Fixed isort error
2020-04-22 23:29:49 +02:00
Erik Montnemery
6631bbc6f5
Remove reconnect logic from MQTT client. ( #34556 )
2020-04-22 14:28:36 -07:00
Erik Montnemery
877eb0c3ad
Don't log same MQTT message multiple times ( #34511 )
2020-04-21 16:48:04 -07:00
presslab-us
e41753556c
Add MQTT climate temperature unit ( #34066 )
...
* Add MQTT temperature unit
2020-04-15 20:11:04 +02:00
springstan
78d87dc40f
Use TEMP_CELSIUS constant ( #33963 )
2020-04-10 19:17:46 +02:00
Franck Nijhof
30c6ace0f3
Rewrite MQTT & demo Lock tests ( #33838 )
...
* Refactor tests to remove tests.lock.common
* Remove unused is_locked hass binding
* Import constants via entity component
* Import constants via entity component
* Fix light vs lock in naming
2020-04-10 00:40:51 +02:00
Erik Montnemery
ddef681dd2
Improve MQTT debug info for subscriptions with wildcard ( #33752 )
2020-04-07 09:38:22 -07:00
Erik Montnemery
f3b6575272
Fix MQTT debug info for subscriptions with wildcard. ( #33744 )
2020-04-06 10:25:09 -07:00
Franck Nijhof
98a2efcbab
Collection of random (mainly) test improvements ( #33733 )
2020-04-06 12:51:48 +02:00
Jevgeni Kiski
a1aebe904e
Add MQTT Alarm Control Panel custom bypass state ( #32541 )
...
* MQTT Alarm Control Panel to have all available states
* MQTT Alarm Control Panel to have all available states
* test_arm_custom_bypass_* tests added
* MQTT payload_arm_custom_bypass abbreviation
2020-04-06 11:45:37 +02:00
Franck Nijhof
262b01d632
Removal of old style class definitions in tests ( #33671 )
2020-04-05 02:21:07 +02:00
Franck Nijhof
03dd92d51b
Use set literals in tests ( #33669 )
2020-04-05 02:20:09 +02:00
Franck Nijhof
d7e9959442
String formatting improvements for tests (2) ( #33666 )
2020-04-05 00:33:07 +02:00
Erik Montnemery
4e6fd19624
Improve MQTT test coverage and remove dead code ( #33584 )
...
* Improve MQTT tests and remove dead code
* Remove useless test.
* Add more test
2020-04-03 09:05:58 -07:00
Ziv
8fbdc703e0
Fix uncaught exceptions for mqtt ( #33547 )
...
now all mqtt tests pass
2020-04-02 15:18:30 -07:00
David F. Mulcahey
201e958854
Use mock storage for MQTT tests ( #33553 )
...
* mock storage for MQTT
* more mqtt storage mocks
2020-04-02 17:13:44 -05:00
Erik Montnemery
fbd197146a
Add MQTT debug info for remaining MQTT integrations ( #33506 )
2020-04-01 11:48:32 -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
505de3dce3
Add attributes and availability to MQTT camera ( #32908 )
2020-03-17 16:49:50 -07:00
Erik Montnemery
52a4c16980
Improve MQTT light test coverage ( #32907 )
2020-03-17 18:29:12 -05: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
324dfe07b4
Clear discovery topic for MQTT device triggers ( #32617 )
2020-03-09 21:59:38 -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
Erik Montnemery
2d6b80470f
Improve error handling ( #32182 )
2020-02-25 10:44:24 -08:00
Erik Montnemery
7e387f93d6
Add MQTT WS command to remove device ( #31989 )
...
* Add MQTT WS command to remove device
* Review comments, fix test
* Fix tests
2020-02-24 20:46:02 -08:00
springstan
9801810552
Use f-strings in integrations starting with "B"-"E" ( #32121 )
...
* Use f-strings in integrations starting with B
* Use f-strings in integrations starting with C
* Use f-strings in integrations starting with D
* Use f-strings in integrations starting with E
* Fix pylint errors
* Fix pylint errors v2
* Fix tests
* Fix tests v2
2020-02-24 08:47:52 -08:00
Erik Montnemery
60ae85564e
Add support for MQTT device triggers ( #31679 )
...
* Add support for MQTT device triggers
* Fix test, tweaks
* Improve test coverage
* Address review comments, improve tests
* Tidy up exception handling
* Fix abbreviations
* Rewrite to handle update of attached triggers
* Update abbreviation test
* Refactor according to review comments
* Refactor according to review comments
* Improve trigger removal
* Further refactoring
2020-02-18 13:51:10 -08:00
Paulus Schoutsen
81dbdc6b9c
Add dump service to MQTT integration ( #31370 )
...
* Add dump service to MQTT integration
* Lint
2020-02-02 15:01:51 -08:00
Christian Clauss
df7d2b3aeb
Fix typos found by codespell ( #31243 )
...
* Fix typos found by codespell
* Fix typos found by codespell
* codespell: Furture ==> Future
* Update test_config_flow.py
* Update __init__.py
* Spellcheck: successfull ==> successful
* Codespell: unsuccesful ==> unsuccessful
* Codespell: cant ==> can't
* Codespell: firware ==> firmware
* Codespell: mimick ==> mimic
2020-01-31 08:33:00 -08:00
Rick
3718b25bd9
Add opening and closing states to MQTT covers ( #31259 )
...
* Added support for the opening and closing states to MQTT covers
* Processed PR feedback on MQTT cover changes
* Add missing MQTT abbreviation to fix failing tests
* Fixed typo in MQTT abbreviations
* Added mqtt set cover position optimistic test
2020-01-30 21:14:46 +01:00
Paulus Schoutsen
e9e44dbd97
Fix callback and async ( #31281 )
...
* Fix callback and async
* Fix a return
* Fix test
* Fix mqtt tests
* Fix some more callbacks
2020-01-29 13:59:45 -08:00
Paulus Schoutsen
9aa02e35a7
Entity Component to no longer generate automatic groups ( #23789 )
2020-01-07 17:30:53 +01:00
Jc2k
8257ea30c0
Set required_features field when registering fan services ( #30516 )
...
* Set required_features on fan services
* Fix mqtt fan test
* Update fan.py
2020-01-06 17:10:51 +01:00
Franck Nijhof
e642d95d0f
Migrate collection of component tests from coroutine to async/await ( #30504 )
2020-01-06 01:22:22 +01:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Iulius
1c2618d99a
Add separate command and state topics for mqtt lock ( #29808 )
...
* Update lock.py
Allow different command and state topic + different command and state values.
* Formatting updated after black run
* TC updated to reflect different state & cmd values
* Abbreviations for lock states added
* additional non-default state test
* whitespaces fixed
* black formatting run
2019-12-31 15:24:09 +01:00
Ville Skyttä
a12cf7211d
Upgrade pydocstyle to 5.0.1 ( #29830 )
...
* Upgrade pydocstyle to 5.0.1
http://www.pydocstyle.org/en/5.0.1/release_notes.html
* Pydocstyle and other docstring fixes
2019-12-10 23:25:06 +01:00
Bas Nijholt
ce5072fc91
use isort to sort imports according to PEP8 for mqtt ( #29649 )
2019-12-08 22:45:26 +05:30
Paulus Schoutsen
02d9ed5e36
Do not select all entities when omitting entity ID in service call ( #29178 )
...
* Do not select all entities when omitting entity ID
* Address comments Matthew
* Require either area_id or entity_id
* Fix tests
* Fix test
2019-12-02 16:23:12 -08:00
Paulus Schoutsen
ffaa0e572a
Inline MQTT paho imports ( #29177 )
...
* Inline MQTT paho imports
* Address comments
* Fix patch paths
* Move other imports inline
* Fix test
2019-12-02 11:32:02 -08:00
Dmitry Krasnoukhov
4881bc04d8
Allow to change MQTT climate hold mode ( #28988 )
2019-11-25 20:53:37 -08:00
Kevin Köck
b7153ca207
Add mqtt temp_low/high_template in SCHEMA_BASE ( #28257 )
...
* fix missing temp_low/high_template in SCHEMA_BASE
* temperature_high/low_state_template test
* Update test_climate.py
* paste error
* Update test_climate.py
* Update test_climate.py
* Update test_climate.py
* Update test_climate.py
2019-11-06 07:50:54 -05:00
Fabian Affolter
15900094a1
Update MQTT sensor test ( #28449 )
2019-11-01 17:30:37 -07:00
Adrien Foulon
85eefe41da
Fix supported_features in mqtt cover ( #28120 )
...
* Correctly compute the supported_features in cover.mqtt
* Update homeassistant/components/mqtt/cover.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* Correctly compute the supported_features in cover.mqtt
* Format
2019-10-23 10:44:47 -07:00
Raman Gupta
4cb984842a
Support custom source type for MQTT device tracker ( #27838 )
...
* support custom source type for MQTT device tracker
* fix typo
* add abbreviation
2019-10-22 22:26:29 -07:00