Commit graph

202 commits

Author SHA1 Message Date
Erik Montnemery
ddef681dd2
Improve MQTT debug info for subscriptions with wildcard () 2020-04-07 09:38:22 -07:00
Erik Montnemery
f3b6575272
Fix MQTT debug info for subscriptions with wildcard. () 2020-04-06 10:25:09 -07:00
Franck Nijhof
98a2efcbab
Collection of random (mainly) test improvements () 2020-04-06 12:51:48 +02:00
Jevgeni Kiski
a1aebe904e
Add MQTT Alarm Control Panel custom bypass state ()
* 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 () 2020-04-05 02:21:07 +02:00
Franck Nijhof
03dd92d51b
Use set literals in tests () 2020-04-05 02:20:09 +02:00
Franck Nijhof
d7e9959442
String formatting improvements for tests (2) () 2020-04-05 00:33:07 +02:00
Erik Montnemery
4e6fd19624
Improve MQTT test coverage and remove dead code ()
* 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 ()
now all mqtt tests pass
2020-04-02 15:18:30 -07:00
David F. Mulcahey
201e958854
Use mock storage for MQTT tests ()
* 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 () 2020-04-01 11:48:32 -07:00
Erik Montnemery
fb93b79b12
Add MQTT debug info ()
* 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 () 2020-03-30 14:26:59 -07:00
Erik Montnemery
e0d2e5dcb0
Remove deprecated features from MQTT platforms ()
* Remove deprecated features

* Lint
2020-03-18 22:39:15 -07:00
Erik Montnemery
505de3dce3
Add attributes and availability to MQTT camera () 2020-03-17 16:49:50 -07:00
Erik Montnemery
52a4c16980
Improve MQTT light test coverage () 2020-03-17 18:29:12 -05:00
Erik Montnemery
86d48c608e
Deduplicate MQTT tests () 2020-03-17 02:09:19 -05:00
Erik Montnemery
8bc542776b
Cleanup entity and device registry on MQTT discovery removal ()
* 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 () 2020-03-11 09:34:19 -07:00
Erik Montnemery
324dfe07b4
Clear discovery topic for MQTT device triggers () 2020-03-09 21:59:38 -07:00
Erik Montnemery
4bb9f1800d
Deduplicate MQTT mixin tests ()
* 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 () 2020-02-25 10:44:24 -08:00
Erik Montnemery
7e387f93d6
Add MQTT WS command to remove device ()
* 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" ()
* 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 ()
* 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 ()
* Add dump service to MQTT integration

* Lint
2020-02-02 15:01:51 -08:00
Christian Clauss
df7d2b3aeb
Fix typos found by codespell ()
* 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 ()
* 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 ()
* 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 () 2020-01-07 17:30:53 +01:00
Jc2k
8257ea30c0 Set required_features field when registering fan services ()
* 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 () 2020-01-06 01:22:22 +01:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations () 2020-01-02 21:17:10 +02:00
Iulius
1c2618d99a Add separate command and state topics for mqtt lock ()
* 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 ()
* 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 () 2019-12-08 22:45:26 +05:30
Paulus Schoutsen
02d9ed5e36
Do not select all entities when omitting entity ID in service call ()
* 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 ()
* 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 () 2019-11-25 20:53:37 -08:00
Kevin Köck
b7153ca207 Add mqtt temp_low/high_template in SCHEMA_BASE ()
* 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 () 2019-11-01 17:30:37 -07:00
Adrien Foulon
85eefe41da Fix supported_features in mqtt cover ()
* 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 ()
* support custom source type for MQTT device tracker

* fix typo

* add abbreviation
2019-10-22 22:26:29 -07:00
Raman Gupta
4e25807b7d Add ability for MQTT device tracker to map non-default topic payloads to zones/states ()
* add ability for MQTT device tracker to map nondefault topic payloads to zones

* update new parameter name and add abbreviation

* support for payload_home, payload_not_home, and payload_custom

* use constants STATE_NOT_HOME and STATE_HOME as defaults

* reference state constants directly

* add empty dict as default for payload_custom

* change parameter name for custom mapping of payloads to non-home zones to be more descriptive

* removed 'payload_other_zones' per ballobs review

* remove abbreviation for 'payload_other_zones'

* add tests for feature
2019-10-17 17:51:27 -07:00
Malte Franken
1a5b4c105a Move imports in mqtt component ()
* move imports to top-level in mqtt server

* move imports to top-level in mqtt configflow

* move imports to top-level in mqtt init

* move imports to top-level in mqtt vacuum

* move imports to top-level in mqtt light
2019-10-17 17:04:27 -07:00
Paulus Schoutsen
3231e22ddf
Remove direct authentication via trusted networks or API password ()
* Remove direct authentication via trusted networks and API password

* Fix tests
2019-10-14 14:56:45 -07:00
Albert Gouws
e394be7337 Mqtt binary sensor expire after ()
* Added expire_after to mqtt binary_sensor. Updated mqtt test_binary_sensor test.

* Cleanup MQTT Binary Sensor and tests after suggestions

* Updated to not alter state at all

* Change to include custom expired variable, and override available property to check expired

* Added # pylint: disable=no-member
2019-09-21 20:42:03 +02:00
zewelor
c4c21d3e99 Add device to mqtt camera ()
* Add device to mqtt camera

* Support discovery device info update and add tests
2019-09-04 16:15:40 +02:00
Erik Montnemery
e0be4efe3e Add test case to identify missing MQTT configuration abbreviations ()
* Add missing abbreviations

* Move abbreviations to own file, add script to find missing abbreviations

* Move check from script to test case

* Lint

* Rewrite to use pathlib

* Lint
2019-08-06 17:32:15 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00