emontnemery
de9bac9ee3
Reconfigure MQTT binary_sensor component if discovery info is changed ( #18169 )
...
* Recreate component if discovery info is changed
* Update component instead of remove+add
* Set name and unique_id in __init__
* Update unit test
* Cleanup
* More cleanup
* Refactor according to review comments
* Change discovery_hash
* Review comments, add tests
* Fix handling of value_template
2018-11-19 16:49:04 +01:00
emontnemery
7e702d3caa
Fix small issue related to topic prefix ( #18512 )
...
Fix expansion of topic prefix when discovery message contains non string-type items.
2018-11-19 09:59:07 +01:00
Paulus Schoutsen
75bb78d440
Update translations
2018-11-15 14:30:37 +01:00
emontnemery
589764900a
Move more MQTT platforms to config entries ( #18180 )
...
* Move Lock MQTT platform to config entries
* Move MQTT JSON Light platform to config entries
* Review comments
* Review comments
* Revert mqtt_json changes
2018-11-06 16:09:46 +01:00
Pascal Vizeli
eb0d989c88
Bugfix discovery (delete/mqtt) call for Hass.io ( #18159 )
...
* Bugfix discovery delete call for Hass.io
* Fix host
* fix tests
2018-11-04 12:19:04 +01:00
Paulus Schoutsen
20fb7b59ef
Update translations
2018-10-30 11:35:40 +01:00
Paulus Schoutsen
c00da509a1
Update translations
2018-10-26 10:18:10 +02:00
Ville Skyttä
43048962f2
Upgrade flake8 to 3.6.0 ( #17770 )
...
* Upgrade flake8 to 3.6.0
* flake8/pylint comment tweaks
* flake8 F841 fixes
* flake8 W605 fix
* Ignore pyflakes bug #373 false positives
https://github.com/PyCQA/pyflakes/issues/373
* pycodestyle bug #811 workaround
https://github.com/PyCQA/pycodestyle/issues/811
2018-10-25 23:15:20 +03:00
Paulus Schoutsen
398ea40189
Update translations
2018-10-23 14:04:25 +02:00
Paulus Schoutsen
355005114b
Update translations
2018-10-21 20:34:28 +02:00
Paulus Schoutsen
a5b9f5040f
Update translations
2018-10-17 14:12:41 +02:00
Paulus Schoutsen
6971e84ddf
Update translations
2018-10-12 14:58:09 +02:00
emontnemery
b2789d9883
Support abbreviations in discovery topic ( #16635 )
...
* Support abbreviations in discovery topic
* Add abbreviations for all words. Add testcase.
Add missing docstring.
* Add missing abbreviations
* Support topic prefix
* Update test case
* Restrict topic prefix
* Fix merge
* Simplify abbreviations expanding, assume TOPIC_PREFIX is one character long
* Support abbreviated keys instead of words
* Remove redundant abbreviations
* Remove extra spaces in abbreviation list
* Make topic prefix less restrictive
* Make topix prefix a bit more restrictive again
2018-10-12 08:51:16 +02:00
Paulus Schoutsen
d16e6c8524
Update translations
2018-10-10 14:25:21 +02:00
Otto Winter
9290f245bf
Convert MQTT fan to config entry ( #17247 )
2018-10-08 14:59:04 +02:00
Otto Winter
af2402ea59
Implement base for MQTT device registry integration ( #16943 )
...
* Implement base for MQTT device registry integration
* Lint
* Lint
* Address comments
* Lint
* Lint
* Address comments
* Only add keys if specified
See https://github.com/home-assistant/home-assistant/pull/17136#discussion_r223267185
2018-10-08 12:53:30 +02:00
Otto Winter
3f498bd042
Fix potential MQTT discovery race condition ( #17208 )
...
* Fix potential MQTT discovery race condition
* Rename data key
2018-10-08 10:59:43 +02:00
Paulus Schoutsen
2de1193fd9
Update translations
2018-10-07 23:26:46 +02:00
Paulus Schoutsen
0c770520ed
Update translations
2018-10-05 17:50:00 +02:00
Paulus Schoutsen
38e2926a48
Update translations
2018-10-02 14:33:47 +02:00
cdce8p
7f0a50ce31
async_create_task ( #17059 )
...
* async_create_task
* Update google.py
2018-10-02 11:03:09 +02:00
Paulus Schoutsen
c69a790ede
Add Hass.io discovery to MQTT ( #16962 )
...
* Add Hass.io discovery to MQTT
* Update en.json
* Update __init__.py
* Update config_flow.py
* Update strings.json
* Update test_config_flow.py
* Lint
* Ensure we don't send bad data in config entry
2018-10-01 14:11:21 +02:00
Otto Winter
760f822dce
Fix MQTT discovery ( #17004 )
2018-10-01 09:01:40 +02:00
Paulus Schoutsen
0a2b266742
Fix MQTT certificates ( #16999 )
2018-09-30 21:36:27 +02:00
Otto Winter
af89e7c50f
Move more MQTT platforms to config entries ( #16918 )
...
* Move more MQTT platforms to config entries
* Address comments
2018-09-28 16:57:17 +02:00
Paulus Schoutsen
bac71d3d22
Update translations
2018-09-27 23:04:28 +02:00
Otto Winter
2d104f95d7
Fix MQTT Config Entry Discovery ( #16919 )
2018-09-27 22:56:04 +02:00
Otto Winter
d1ad2cc225
Make MQTT platforms config entries ( #16904 )
...
* Make MQTT platforms config entries
* Fix tests
* Address Comment
* Rework tests
* Undo style auto-reformat style changes
2018-09-27 16:07:56 +02:00
Paulus Schoutsen
732009c668
Update translations
2018-09-26 15:39:20 +02:00
Paulus Schoutsen
c899875abb
Fix MQTT discovery ( #16864 )
...
* Fix MQTT discovery
* Update __init__.py
2018-09-26 09:38:50 +02:00
Paulus Schoutsen
e4898bb05c
Allow MQTT discovery ( #16842 )
2018-09-25 12:22:14 +02:00
Paulus Schoutsen
d4b239d1d4
Update translations
2018-09-24 12:01:01 +02:00
emontnemery
5ee4718e24
Remove discovered MQTT Switch device when discovery topic is cleared ( #16605 )
...
* Remove discovered device when discovery topic is cleared
* Move entity removal away from mqtt discovery
* Move discovery update to mixin class
* Add testcase
* Review comments
2018-09-24 10:11:49 +02:00
Fabian Affolter
cba3a5b055
Upgrade paho-mqtt to 1.4.0 ( #16688 )
2018-09-18 14:59:39 +02:00
Paulus Schoutsen
4b30cbbf3b
Update translations
2018-09-17 14:18:20 +02:00
Paulus Schoutsen
849a93e0a6
Update translations
2018-09-17 10:48:22 +02:00
Paulus Schoutsen
201fd4afee
Add config entries to connection class ( #16618 )
2018-09-17 10:12:46 +02:00
Paulus Schoutsen
72e746d240
MQTT config entry ( #16594 )
...
* MQTT config entry
* Solely rely on config entry
* Improve wawrning
* Lint
* Lint2
2018-09-14 11:57:31 +02:00
Rohan Kapoor
e61ac1a4a1
Delegate mqtt topic match validation to the paho mqtt client ( #16403 )
...
* Delegate mqtt match topics to the paho mqtt client
* Fixing linting error with importing MQTTMatcher
2018-09-04 10:31:45 +02:00
Jason Hu
4685a2cd97
Update server.py ( #16375 )
2018-09-02 22:17:29 +02:00
Jason Hu
87eb6cd25a
Upgrade hbmqtt to 0.9.4 ( #16356 )
...
* Upgrade to hbmqtt 0.9.4
* Lint
* Typo
2018-09-02 12:50:30 +02:00
Matthias Urlichs
a1ce14e70f
MQTT: Log transmitted as well as received messages ( #16195 )
2018-08-26 10:04:51 +02:00
Jason Hu
c31035d348
Teak mqtt error message for 0.76 release ( #15983 )
2018-08-15 08:09:19 +02:00
Jason Hu
45f12dd3c7
MQTT embedded broker has to set its own password. ( #15929 )
2018-08-13 11:26:06 +02:00
Richard Orr
cd6544d32a
Add support for alarm_control_panel to MQTT Discovery. ( #15689 )
2018-07-27 17:16:49 +02:00
Ville Skyttä
2f7b79764a
More pylint 2 fixes ( #15565 )
...
## Description:
More fixes flagged by pylint 2 that don't hurt to have before the actual pylint 2 upgrade (which I'll submit soon).
## Checklist:
- [ ] The code change is tested and works locally.
- [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
2018-07-20 11:45:20 +03:00
Ville Skyttä
bf17ed0917
More pylint 2 fixes ( #15516 )
...
* Pylint 2 useless-import-alias fixes
* Pylint 2 chained-comparison fixes
* Pylint 2 consider-using-get fixes
* Pylint 2 len-as-condition fixes
2018-07-18 11:54:27 +02:00
dreizehnelf
73034c933e
Add discovery support to mqtt climate component. ( #15085 )
...
* Add discovery support to mqtt climate component.
* - Fix flake8 error (./homeassistant/components/climate/mqtt.py:130:1: D202 No blank lines allowed after function docstring)
- Fix test error (since climate component was expected not to work - changed it to "lock" component, which also does not have MQTT discovery support yet)
* Fix old assert statement to reflect new lock component usage
* Change invalid MQTT discovery component type from 'lock' to 'timer', since contrary to the documentation the lock component is properly supported when using MQTT discovery.
* Make configuration of invalid MQTT config component a single point of entry to prevent missing the assertion later in the code when changing.
* Add new testcases to cover not-yet-covered code paths in https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/climate/mqtt.py
2018-06-25 15:13:19 +02:00
Javier Gonel
a2b8ad50f2
fix(hbmqtt): partial packets breaking hbmqtt ( #14329 )
...
This issue was fixed in hbmqtt/issues#95 that was released in hbmqtt 0.9.2
2018-05-07 09:52:33 -04:00
Otto Winter
9d1f9fe204
Improve MQTT topic validation ( #14099 )
...
* Improve MQTT topic validation
* Fix test
* Improve length check
2018-04-27 13:15:45 +02:00