zewelor
c4c21d3e99
Add device to mqtt camera ( #26238 )
...
* Add device to mqtt camera
* Support discovery device info update and add tests
2019-09-04 16:15:40 +02:00
Franck Nijhof
7203027cbf
Use literal string interpolation in integrations K-M (f-strings) ( #26389 )
2019-09-03 21:14:00 +02:00
Paulus Schoutsen
e69953fe2d
Update translations
2019-08-28 12:45:48 -07:00
Ville Skyttä
b738082dad
Type check various base components ( #25878 )
...
* Type check various component base classes, disabling bunch of checks for now
* Type hint fixes
* Help mypy out some
* Add more type hints
2019-08-11 20:38:18 -07:00
Erik Montnemery
e0be4efe3e
Add test case to identify missing MQTT configuration abbreviations ( #25616 )
...
* 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
Ville Skyttä
a54ade1189
Spelling fixes ( #25666 )
2019-08-02 23:20:06 +02:00
Paulus Schoutsen
37d78af42c
Add translations
2019-07-31 16:16:40 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
50d4921d0a
Introduce PRESET_NONE for climate ( #25360 )
...
* Introduce PRESET_NONE for climate
* Require preset mode to be a string
* Lint
* Fix tests
2019-07-21 11:00:42 -07:00
Philip Rosenberg-Watt
1c6d55e51b
Add MQTT climate precision ( #25265 )
...
* Add MQTT climate precision
* Remove stale code
2019-07-18 15:21:50 -07:00
definitio
93970b5621
Add hvac_action support for MQTT HVAC ( #25260 )
...
* Add hvac_action support
* Add tests
2019-07-18 10:17:26 -07:00
Pascal Vizeli
84cf76ba36
Climate 1.0 ( #23899 )
...
* Climate 1.0 / part 1/2/3
* fix flake
* Lint
* Update Google Assistant
* ambiclimate to climate 1.0 (#24911 )
* Fix Alexa
* Lint
* Migrate zhong_hong
* Migrate tuya
* Migrate honeywell to new climate schema (#24257 )
* Update one
* Fix model climate v2
* Cleanup p4
* Add comfort hold mode
* Fix old code
* Update homeassistant/components/climate/__init__.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* Update homeassistant/components/climate/const.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* First renaming
* Rename operation to hvac for paulus
* Rename hold mode to preset mode
* Cleanup & update comments
* Remove on/off
* Fix supported feature count
* Update services
* Update demo
* Fix tests & use current_hvac
* Update comment
* Fix tests & add typing
* Add more typing
* Update modes
* Fix tests
* Cleanup low/high with range
* Update homematic part 1
* Finish homematic
* Fix lint
* fix hm mapping
* Support simple devices
* convert lcn
* migrate oem
* Fix xs1
* update hive
* update mil
* Update toon
* migrate deconz
* cleanup
* update tesla
* Fix lint
* Fix vera
* Migrate zwave
* Migrate velbus
* Cleanup humity feature
* Cleanup
* Migrate wink
* migrate dyson
* Fix current hvac
* Renaming
* Fix lint
* Migrate tfiac
* migrate tado
* Fix PRESET can be None
* apply PR#23913 from dev
* remove EU component, etc.
* remove EU component, etc.
* ready to test now
* de-linted
* some tweaks
* de-lint
* better handling of edge cases
* delint
* fix set_mode typos
* apply PR#23913 from dev
* remove EU component, etc.
* ready to test now
* de-linted
* some tweaks
* de-lint
* better handling of edge cases
* delint
* fix set_mode typos
* delint, move debug code
* away preset now working
* code tidy-up
* code tidy-up 2
* code tidy-up 3
* address issues #18932 , #15063
* address issues #18932 , #15063 - 2/2
* refactor MODE_AUTO to MODE_HEAT_COOL and use F not C
* add low/high to set_temp
* add low/high to set_temp 2
* add low/high to set_temp - delint
* run HA scripts
* port changes from PR #24402
* manual rebase
* manual rebase 2
* delint
* minor change
* remove SUPPORT_HVAC_ACTION
* Migrate radiotherm
* Convert touchline
* Migrate flexit
* Migrate nuheat
* Migrate maxcube
* Fix names maxcube const
* Migrate proliphix
* Migrate heatmiser
* Migrate fritzbox
* Migrate opentherm_gw
* Migrate venstar
* Migrate daikin
* Migrate modbus
* Fix elif
* Migrate Homematic IP Cloud to climate-1.0 (#24913 )
* hmip climate fix
* Update hvac_mode and preset_mode
* fix lint
* Fix lint
* Migrate generic_thermostat
* Migrate incomfort to new climate schema (#24915 )
* initial commit
* Update climate.py
* Migrate eq3btsmart
* Lint
* cleanup PRESET_MANUAL
* Migrate ecobee
* No conditional features
* KNX: Migrate climate component to new climate platform (#24931 )
* Migrate climate component
* Remove unused code
* Corrected line length
* Lint
* Lint
* fix tests
* Fix value
* Migrate geniushub to new climate schema (#24191 )
* Update one
* Fix model climate v2
* Cleanup p4
* Add comfort hold mode
* Fix old code
* Update homeassistant/components/climate/__init__.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* Update homeassistant/components/climate/const.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* First renaming
* Rename operation to hvac for paulus
* Rename hold mode to preset mode
* Cleanup & update comments
* Remove on/off
* Fix supported feature count
* Update services
* Update demo
* Fix tests & use current_hvac
* Update comment
* Fix tests & add typing
* Add more typing
* Update modes
* Fix tests
* Cleanup low/high with range
* Update homematic part 1
* Finish homematic
* Fix lint
* fix hm mapping
* Support simple devices
* convert lcn
* migrate oem
* Fix xs1
* update hive
* update mil
* Update toon
* migrate deconz
* cleanup
* update tesla
* Fix lint
* Fix vera
* Migrate zwave
* Migrate velbus
* Cleanup humity feature
* Cleanup
* Migrate wink
* migrate dyson
* Fix current hvac
* Renaming
* Fix lint
* Migrate tfiac
* migrate tado
* delinted
* delinted
* use latest client
* clean up mappings
* clean up mappings
* add duration to set_temperature
* add duration to set_temperature
* manual rebase
* tweak
* fix regression
* small fix
* fix rebase mixup
* address comments
* finish refactor
* fix regression
* tweak type hints
* delint
* manual rebase
* WIP: Fixes for honeywell migration to climate-1.0 (#24938 )
* add type hints
* code tidy-up
* Fixes for incomfort migration to climate-1.0 (#24936 )
* delint type hints
* no async unless await
* revert: no async unless await
* revert: no async unless await 2
* delint
* fix typo
* Fix homekit_controller on climate-1.0 (#24948 )
* Fix tests on climate-1.0 branch
* As part of climate-1.0, make state return the heating-cooling.current characteristic
* Fixes from review
* lint
* Fix imports
* Migrate stibel_eltron
* Fix lint
* Migrate coolmaster to climate 1.0 (#24967 )
* Migrate coolmaster to climate 1.0
* fix lint errors
* More lint fixes
* Fix demo to work with UI
* Migrate spider
* Demo update
* Updated frontend to 20190705.0
* Fix boost mode (#24980 )
* Prepare Netatmo for climate 1.0 (#24973 )
* Migration Netatmo
* Address comments
* Update climate.py
* Migrate ephember
* Migrate Sensibo
* Implemented review comments (#24942 )
* Migrate ESPHome
* Migrate MQTT
* Migrate Nest
* Migrate melissa
* Initial/partial migration of ST
* Migrate ST
* Remove Away mode (#24995 )
* Migrate evohome, cache access tokens (#24491 )
* add water_heater, add storage - initial commit
* add water_heater, add storage - initial commit
delint
add missing code
desiderata
update honeywell client library & CODEOWNER
add auth_tokens code, refactor & delint
refactor for broker
delint
* Add Broker, Water Heater & Refactor
add missing code
desiderata
* update honeywell client library & CODEOWNER
add auth_tokens code, refactor & delint
refactor for broker
* bugfix - loc_idx may not be 0
more refactor - ensure pure async
more refactoring
appears all r/o attributes are working
tweak precsion, DHW & delint
remove unused code
remove unused code 2
remove unused code, refactor _save_auth_tokens()
* support RoundThermostat
bugfix opmode, switch to util.dt, add until=1h
revert breaking change
* store at_expires as naive UTC
remove debug code
delint
tidy up exception handling
delint
add water_heater, add storage - initial commit
delint
add missing code
desiderata
update honeywell client library & CODEOWNER
add auth_tokens code, refactor & delint
refactor for broker
add water_heater, add storage - initial commit
delint
add missing code
desiderata
update honeywell client library & CODEOWNER
add auth_tokens code, refactor & delint
refactor for broker
delint
bugfix - loc_idx may not be 0
more refactor - ensure pure async
more refactoring
appears all r/o attributes are working
tweak precsion, DHW & delint
remove unused code
remove unused code 2
remove unused code, refactor _save_auth_tokens()
support RoundThermostat
bugfix opmode, switch to util.dt, add until=1h
revert breaking change
store at_expires as naive UTC
remove debug code
delint
tidy up exception handling
delint
* update CODEOWNERS
* fix regression
* fix requirements
* migrate to climate-1.0
* tweaking
* de-lint
* TCS working? & delint
* tweaking
* TCS code finalised
* remove available() logic
* refactor _switchpoints()
* tidy up switchpoint code
* tweak
* teaking device_state_attributes
* some refactoring
* move PRESET_CUSTOM back to evohome
* move CONF_ACCESS_TOKEN_EXPIRES CONF_REFRESH_TOKEN back to evohome
* refactor SP code and dt conversion
* delinted
* delinted
* remove water_heater
* fix regression
* Migrate homekit
* Cleanup away mode
* Fix tests
* add helpers
* fix tests melissa
* Fix nehueat
* fix zwave
* add more tests
* fix deconz
* Fix climate test emulate_hue
* fix tests
* fix dyson tests
* fix demo with new layout
* fix honeywell
* Switch homekit_controller to use HVAC_MODE_HEAT_COOL instead of HVAC_MODE_AUTO (#25009 )
* Lint
* PyLint
* Pylint
* fix fritzbox tests
* Fix google
* Fix all tests
* Fix lint
* Fix auto for homekit like controler
* Fix lint
* fix lint
2019-07-08 14:00:24 +02:00
Franck Nijhof
31f569ada9
Batch of Component(s) -> Integration(s) ( #24972 )
2019-07-05 15:24:26 -07:00
Dennis Keitzel
8cd138608c
Support mqtt discovery topic prefix with slashes ( #24840 )
2019-07-01 10:23:01 -07:00
Paulus Schoutsen
ca70b96005
Update translations
2019-06-18 11:54:56 -07:00
Kevin Cooper
f722a6c08d
Add code_arm_required to manual alarm with MQTT ( #22641 )
...
* add code_arm_requited to manual-mqtt alarm
* Add fix for alarm front end more-info-alarm_control_panel
* Fix code mistake
2019-06-17 14:49:10 -07:00
kbickar
7564d1fb52
Added toggle service to covers ( #23198 )
...
* Added toggle service to cover
* Added toggle tilt service and tilt closed property
* Added is_tilt_closed so tilt can be toggled
* Added toggle services
* Added toggle tilt service
* Removed spaces
* Added tests for tilt services
* Updated tests
* Added range conversion in comparison
* Added tests to cover broken areas
* Fixed open/close tilt values and added toggle function
* Added default toggle behavior using tilt_position of 0, reverted other changes
* blank space
* Added constants and swapped assert comparisons
* Fixed attribute name
* Added mqtt responses in test
* Added constants
* Space
* Fix tilt_optimistic flag being ignored if status topic set
* Added more tests
* Changed async toggle call
* Updated group tilt test
* Updated format of asserts
* Updated states calls
* Updated function variables
* merge fixes
* Added blank line
* Changed calls to async
* More async updates
2019-06-17 14:09:31 -07:00
Paulus Schoutsen
92816b57ef
Update translations
2019-06-14 14:53:13 -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
Tommy Long
e98054accb
Add templating to MQTT Cover tilt_status ( #24355 )
2019-06-06 15:30:27 -07:00
Maciej Bieniek
3b4a9a337b
Add abbreviation for light template variable names ( #24336 )
2019-06-06 18:10:23 +02:00
Paulus Schoutsen
14c0ada9ac
Update translations
2019-06-04 08:50:48 -07:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ( #23984 )
...
* Don't pass in loop
* Revert some changes
* Lint + Axis revert
* reinstate loop
* Fix a test
* Set loop
* Update camera.py
* Lint
2019-05-22 21:09:59 -07:00
Paulus Schoutsen
1e22c8daca
Automatically generate config flow list ( #23802 )
...
* Add config flow to manifest.json
* Still load config flows via config flow platform
* Fix typo
* Lint
* Update config_flows.py"
* Catch import error when setting up entry
* Lint
* Fix tests
* Fix imports
* Lint
* Fix Unifi tests
* Fix translation test
* Add homekit_controller config flow
2019-05-13 01:16:55 -07:00
Paulus Schoutsen
e51925fc58
Update translations
2019-05-08 20:20:58 -07:00
Maciej Bieniek
16a27c3f2d
Add abbreviation for position_topic ( #23740 )
2019-05-07 22:20:55 +02:00
unixko
f386088def
add abbreviation for current_temperature_template ( #23733 )
2019-05-07 08:27:35 +02:00
Erik Montnemery
8d775caaac
Always print invalid configuration data ( #21972 )
...
* Always print invalide configuration data
* Print offending data as yaml
* Revert "Print offending data as yaml"
This reverts commit 01721a21a9ff918ed2c8595151ebfe55eb2f7d36.
* Do not print sensitive data
* Print MQTT topic
* Add line break
* Review comments
* review comments
2019-04-29 13:45:53 -07:00
Pawel
9007e17c3e
MQTT Vacuum State Device ( #23171 )
...
* add StateVacuum MQTT
2019-04-22 21:49:15 +02:00
Erik Montnemery
bea7e2a7fa
Fix clearing error message for MQTT vacuum ( #23206 )
...
* Fix clearing error message
* Remove redundant hass.async_block_till_done
2019-04-18 21:01:19 -07:00
Erik Montnemery
7a84cfb0be
Fix optimistic mode + other bugs, tests ( #22976 )
2019-04-18 20:59:41 -07:00
Erik Montnemery
70ba5eb0ef
Add json_attributes_template ( #22981 )
2019-04-18 20:55:10 -07:00
Pawel
1d2e9b6915
Add support for params in send_command ( #23071 )
...
* add support for params in send_command
* add more tests
2019-04-14 11:09:46 -07:00
Erik Montnemery
c6bc47b32d
Refactor MQTT climate to deduplicate code ( #23044 )
2019-04-13 20:34:39 -07:00
Erik Montnemery
b390de1598
Fix bugs in MQTT vacuum ( #23048 )
2019-04-13 20:29:01 -07:00
Erik Montnemery
d99637e51b
Deprecate implicit state_topic for MQTT discovery ( #22998 )
...
* Deprecate implicit state_topic for MQTT discovery
* Lint
* Add comments
* Modernize tests
2019-04-13 20:25:45 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Rohan Kapoor
6ba9ccf052
Load requirements and dependencies from manifests. Fallback to current `REQUIREMENTS` and `DEPENDENCIES` ( #22717 )
...
* Load dependencies from manifests. Fallback to current DEPENDENCIES
* Fix typing
* Ignore typing correctly
* Split out dependency processing to a new method
* Fix tests
* Only pull from manifest if dependencies is non empty
* Inline temporary function
* Fix light tests [skip ci]
* Fix tests/common
* Fix some mqtt tests [skip ci]
* Fix tests and component manifests which have only one platform
* Fix rflink tests
* Fix more tests and manifests
* Readability over shorthand format
* Fix demo/notify tests
* Load dependencies from manifests. Fallback to current DEPENDENCIES
* Load requirements from manifests. Fallback to current REQUIREMENTS
* Fix typing
* Ignore typing correctly
* Split out dependency processing to a new method
* Only pull from manifest if dependencies is non empty
* Inline temporary function
* Fix tests and component manifests which have only one platform
* Fix rflink tests
* Readability over shorthand format
* Clean up requirements
* Use integration to resolve deps/reqs
* Lint
* Lint
* revert a change
* Revert a test change
* Fix types
* Fix types
* Add back cache for load component
* Fix test_component_not_found
* Move light.test and device_tracker.test into test package instead with manifest to fix tests
* Fix broken device_tracker tests
* Add docstrings to __init__
* Fix all of the light tests that I broke earlier
* Embed the test.switch platform to fix other tests
* Embed and fix the test.imagimage_processing platform
* Fix tests for nx584
* Add dependencies from platform file's DEPENDENCIES
* Try to setup component when entity_platform is setting up
Fix tests in helpers folder
* Rewrite test_setup
* Simplify
* Lint
* Disable demo component if running in test
Temp workaround to unblock CI tests
* Skip demo tests
* Fix config entry test
* Fix repeat test
* Clarify doc
* One extra guard
* Fix import
* Lint
* Workaround google tts
2019-04-11 01:26:36 -07:00
Erik Montnemery
38d92b2abf
Fix optimistic mode and add tests ( #22899 )
2019-04-10 13:56:34 -07:00
Erik Montnemery
bc5f0ff0b3
Use dict[key] for required config keys and keys with default values of MQTT light ( #22834 )
...
* Use dict[key] for required config keys and keys with default values.
* Improve tests
* Lint
* Improve tests of JSON data
2019-04-10 11:16:41 +02:00
Paulus Schoutsen
e48ef7f441
Fix broken platform components ( #22943 )
...
* Fix broken platform components
* Lint
2019-04-09 15:42:44 -07:00
Paulus Schoutsen
0d2646ba25
Update translations
2019-04-09 08:34:20 -07:00
Erik Montnemery
49a2f5a40b
Use dict[key] for required config keys and keys with default values. ( #22832 )
2019-04-08 08:47:40 -07:00
Otto Winter
c9ec166f4b
Add MQTT climate two-point target temperature support ( #22860 )
...
* Add MQTT climate two-point target temperature support
* Sort
* Fix test
2019-04-08 06:28:42 -07:00
Erik Montnemery
fa2e07d7c5
Use dict[key] for required config keys and keys with default values. ( #22830 )
2019-04-07 10:11:45 -04:00
Erik Montnemery
58220a9448
Use dict[key] for required config keys and keys with default values. ( #22829 )
2019-04-07 10:11:20 -04:00
Erik Montnemery
dbb42e5890
Use dict[key] for required config keys and keys with default values. ( #22838 )
2019-04-07 10:10:57 -04:00
Erik Montnemery
2a62906965
Use dict[key] for required config keys and keys with default values. ( #22837 )
2019-04-07 10:10:13 -04:00
Erik Montnemery
b1213b7a2d
Use dict[key] for required config keys and keys with default values. ( #22836 )
2019-04-07 10:09:43 -04:00
Erik Montnemery
a4e7708450
Use dict[key] for required config keys and keys with default values. ( #22833 )
2019-04-07 10:08:47 -04:00
Erik Montnemery
439197ea3e
Use dict[key] for required config keys and keys with default values. ( #22828 )
2019-04-07 10:08:04 -04:00
Erik Montnemery
842534d472
Use dict[key] for required config keys and keys with default values. ( #22831 )
2019-04-07 10:00:40 -04:00
Erik Montnemery
83fb3637d9
Sort configuration schema. ( #22835 )
2019-04-07 09:56:38 -04:00
Erik Montnemery
353fca3b6e
Raise severity of MQTT callback deprecation warning ( #22792 )
2019-04-06 20:31:39 -07:00
Erik Montnemery
563e4fbfca
Add deprecation warning to embedded broker ( #22753 )
2019-04-04 23:38:10 -07:00
Kyle Niewiada
a5a926bcc6
Raise ConfigEntryNotReady for MQTT connection exception ( #22540 )
...
* Raise ConfigEntryNotReady for connection exception
Raise ConfigEntryNotReady for the connection exception like if the MQTT Server container/device is being restarted or was unavailable on boot.
* Add new exception
* grammar fix
* Possibly resolve hound comments
* raise `ConfigEntryNotReady` for mqtt connection error
* revert exceptions.py
* Update exceptions.py
* modify test to handle exception
* use constants to control exception scope
* Raise ConfigEntryNotReady for connection exception
Raise ConfigEntryNotReady for the connection exception like if the MQTT Server container/device is being restarted or was unavailable on boot.
* Add new exception
* Add new exception
* grammar fix
* Possibly resolve hound comments
* raise `ConfigEntryNotReady` for mqtt connection error
* revert exceptions.py
* Update exceptions.py
* modify test to handle exception
* use constants to control exception scope
* revert test change as it's not the same thing
* Update test_init.py
* Add test for MQTT OSError
* revert file changes from a bad rebase
* Rewrite test with valid syntax
* rewrite test to be less ambiguous
* add empty line
* add back 'axis'
* Remove empty line
* Update tests and undo merge from earlier
* correctly restore test for no connect broker
* fix test mock correctly
* line was too long. hit enter.
2019-04-03 21:51:01 -07:00
Paulus Schoutsen
cfe4cf30ad
Add manifests ( #22699 )
...
* Add manifests
* Update auto name
* Update codeowners
* Add requirements from platforms
* Minor cleanup
* Incorporate changes from awarecan PR
2019-04-03 21:14:45 -07:00
Tobias Sauerwein
048b100eea
Clean up docstrings ( #22679 )
...
* Clean up docstrings
* Fix long lines
* Fix more docstrings
* Fix more docstrings
* Fix more docstrings
2019-04-03 17:40:03 +02:00
Kevin Cooper
4b9e3258dc
Add command_template and value_template for MQTT alarm ( #21438 )
...
* Option to send pin code with the MQTT payload for MQTT alarm
* publish code via json
Add publish code via json
add code_disarm_required
* publish code via json
Add publish code via json
add code_disarm_required
* implemented command_template
* Fix issue with night arm and add template test
* implemented value_template for mqtt alarm
* Fixed merge errors
* Requested changes
* Resolve lint errors
* Resolve hound issues
* Fix test formatting
2019-03-30 07:36:10 +01:00
Robbie Trencheny
89221bfab9
Fix for embedded MQTT server configuration ( #22305 )
...
## Description:
Passing in a configuration for the embedded MQTT server has been broken for a while. This fixes that. See related issue number for further details.
**Related issue (if applicable):** fixes #18228
## Checklist:
- [x] The code change is tested and works locally.
- [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
- [x] There is no commented out code in this PR.
2019-03-22 16:01:58 -07:00
Paulus Schoutsen
72bb94de96
Update translations
2019-03-21 12:57:20 -07:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ( #22235 )
...
* Use relative imports inside integrations
* Lint
* Fix automation tests
* Fix scene imports
2019-03-20 22:56:46 -07:00
emontnemery
5957e4b75b
Pass Message object to MQTT message callbacks ( #21959 )
...
* Pass Message object to MQTT message callbacks
* Improve method of detecting deprecated msg callback
* Fix mysensors
* Fixup
* Review comments
* Fix merge error
2019-03-13 12:58:20 -07:00
emontnemery
ce1fe06193
Write state directly in all MQTT platforms ( #21971 )
2019-03-12 14:46:48 -07:00
Paulus Schoutsen
d635111e4f
Update translations
2019-03-12 11:31:17 -07:00
Paulus Schoutsen
429bbc05dc
Add WS subscription command for MQTT ( #21696 )
...
* Add WS subscription command for MQTT
* Add test
* Add check for connected
* Rename event_listeners to subscriptions
2019-03-10 20:07:09 -07:00
Jason Hu
fe1840f901
Deprecate http.api_password ( #21884 )
...
* Deprecated http.api_password
* Deprecated ApiConfig.api_password
GitHub Drafted PR would trigger CI after changed it to normal PR.
I have to commit a comment change to trigger it
* Trigger CI
* Adjust if- elif chain in auth middleware
2019-03-10 19:55:36 -07:00
Marco M
05333f60d7
Fix missing code_required check in async_alarm_arm_night ( #21858 )
...
* Fix missing code_required check in async_alarm_arm_night
* Remove double code validation
Test added
2019-03-10 14:25:01 +01:00
emontnemery
fc81826763
Introduce Entity.async_write_ha_state() to not miss state transition ( #21590 )
...
* Copy state in schedule_update_ha_state
* Lint
* Fix broken test
* Review comment, improve docstring
* Preserve order of state updates
* Rewrite
* Break up async_update_ha_state
* Update binary_sensor.py
* Review comments
* Update docstring
* hass -> ha
* Update entity.py
* Update entity.py
2019-03-09 09:52:22 -08:00
engrbm87
76d11e4b74
fix empty TOPIC_BASE issue ( #21740 )
...
* fix empty TOPIC_BASE issue
if the value of the TOPIC_BASE is empty then we need to remove "~" from the topic value if it exists.
by doing `if base:` on line 239 the condition will be false if the value is empty so the '~' will not be stripped from the topic value.
I simply removed the `if base:` line and added `if TOPIC_BASE in payload:`
* Update homeassistant/components/mqtt/discovery.py
Co-Authored-By: engrbm87 <engrbm87@gmail.com>
2019-03-08 16:48:54 -08:00
emontnemery
c340083ba5
Add missing retain option to mqtt.climate configuration schema ( #21536 )
2019-02-28 18:26:54 +01:00
Marco M
c3d4738649
Mqtt alarm added value_template and code_arm_required ( #19558 )
...
* Added value_template config for parsing json value from state topic
Added arm_code_required to avoid code enter when arming
* Renamed config parameter to code_arm_required
* Fix for discovery update compatibility
* Fixed lint error
* Added test
2019-02-28 17:44:23 +01:00
Paulus Schoutsen
78217fa9b0
Update translations
2019-02-27 16:34:13 -08:00
Paulus Schoutsen
3fcbc36abe
Update translations
2019-02-21 16:40:25 -08:00
Joakim Plate
c5de32e7b1
Climate const.py move ( #20945 )
...
* Move constants to const.py
* Import from const instead of climate
2019-02-14 20:34:43 +01:00
Paulus Schoutsen
02f207ea8e
Update translations
2019-02-13 15:44:18 -08:00
Ryan Wagoner
62b2b23d0b
Add night arm mode to MQTT alarm control panel ( #20961 )
...
* Add night arm mode to MQTT alarm control panel
* Add unit test for MQTT alarm night mode
2019-02-13 22:52:32 +01:00
emontnemery
22af9707ad
Add support for device_class to MQTT cover ( #21044 )
2019-02-13 19:58:46 +00:00
emontnemery
5f7f7777a0
Fix encoding for MQTT camera ( #20932 )
2019-02-10 12:35:54 +01:00
emontnemery
b1faad0a50
Use PLATFORM_SCHEMA_BASE as base schema for additional components. ( #20578 )
...
* Disable extra=vol.ALLOW_EXTRA for additional platforms.
* Remove PLATFORM_SCHEMA_2
* Add entity_namespace to base platform schema
2019-02-04 21:52:19 -08:00
emontnemery
79d3f533a9
Add missing abbreviations ( #20741 )
2019-02-04 10:54:40 -08:00
Paulus Schoutsen
c2eec16721
Update translations
2019-02-02 14:12:23 -08:00
Paulus Schoutsen
ec57db78b5
Consolidate config flow components ( #20635 )
...
* Consolidate config flow components
* Fix tests
* Fix tests
* Put unifi back
* Fix reqs
* Update coveragerc
2019-02-01 15:45:44 -08:00
emontnemery
89fc3b2a1b
Disable extra=vol.ALLOW_EXTRA for MQTT platforms. ( #20562 )
2019-01-29 09:29:02 -08:00
emontnemery
3ee3acd550
Update device registry of MQTT light ( #20441 )
...
* Update device registry of MQTT light
* Move config_entry to constructor
2019-01-28 19:45:34 -08:00
emontnemery
bb1583c453
Add discovery update support to MQTT camera ( #20529 )
2019-01-28 16:21:38 -08:00
emontnemery
bb4ca1f525
Cleanup if discovered mqtt vacuum can't be added ( #20549 )
2019-01-28 15:56:47 -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
8804f55fcc
Update device registry of MQTT Vacuum ( #20500 )
2019-01-27 17:43:16 +01:00
emontnemery
1f93984fd5
Update device registry of MQTT Lock ( #20501 )
2019-01-27 17:42:45 +01:00
emontnemery
60dc337f3f
Update device registry of MQTT cover ( #20443 )
...
* Update device registry of MQTT cover
* Move config_entry to constructor
2019-01-26 10:52:41 -08:00
emontnemery
85c72fbca6
Update device registry of MQTT alarm ( #20439 )
2019-01-26 10:48:35 -08:00
emontnemery
85ccd71d39
Update device registry of MQTT sensor ( #20440 )
2019-01-26 10:48:18 -08:00
Paulus Schoutsen
09cbcb74bc
Merge pull request #20442 from emontnemery/mqtt_binary_sensor_update_device_info
...
Update device registry of MQTT binary_sensor
2019-01-26 10:47:57 -08:00
Paulus Schoutsen
0e453fe492
Update device registry of MQTT climate ( #20444 )
2019-01-26 10:47:29 -08:00
emontnemery
1d16bb2cd4
Update device registry of MQTT fan ( #20445 )
2019-01-26 10:46:41 -08:00
emontnemery
6d2e7db123
Update device registry of MQTT climate
2019-01-26 09:04:02 +08:00
emontnemery
d8e43978b7
Update device registry of MQTT binary_sensor
2019-01-26 08:58:08 +08:00
emontnemery
d84cd01cbf
Cleanup if discovered mqtt light can't be added ( #19740 )
...
* Cleanup if discovered mqtt light can't be added
* No bare except
* Clear ALREADY_DISCOVERED list with helper
* Use constant instead of string literal
2019-01-24 22:40:52 -08:00
emontnemery
a1da6a677a
Update device registry of MQTT Switch ( #19540 )
...
* MQTT Switch: Update device registry
* Move config_entry to constructor
* Remove duplicated code
* Fix merge error
2019-01-24 22:39:16 -08:00
Daniel Høyer Iversen
1bd31e3459
Change STATE_UNKOWN to None ( #20337 )
...
* Change STATE_UNKOWN to None
* Change STATE_UNKOWN to None
* tests
* tests
* tests
* tests
* tests
* style
* fix comments
* fix comments
* update fan test
2019-01-24 08:20:20 +01:00
emontnemery
3fcbcd5a38
Add JSON attribute topic to MQTT alarm ( #20238 )
2019-01-20 16:42:56 -08:00
emontnemery
dbba3eb0d4
Add JSON attribute topic to MQTT climate ( #20239 )
2019-01-20 16:42:35 -08:00
emontnemery
89e9d827a2
Add JSON attribute topic to MQTT fan ( #20240 )
2019-01-20 16:42:17 -08:00
emontnemery
ab4e4787e3
Add JSON attribute topic to MQTT lock ( #20241 )
2019-01-20 16:41:50 -08:00
Erik
5b8f64093b
Add JSON attribute topic to MQTT vacuum
2019-01-19 11:58:21 +01:00
emontnemery
f094a7369d
Add JSON attribute topic to MQTT switch ( #20192 )
2019-01-17 10:55:22 -08:00
emontnemery
234f348ba1
Add JSON attribute topic to MQTT light ( #20191 )
2019-01-17 10:54:22 -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
368682647d
Log exceptions thrown by MQTT message callbacks ( #19977 )
...
* Log exceptions thrown by MQTT message callbacks
* Fix tests
* Correct method for skipping wrapper in traceback
* Lint
* Simplify traceback print
* Add test
* Move wrapper to common helper function
* Typing
* Lint
2019-01-16 13:50:21 -08:00
emontnemery
0ec1401be7
Minor refactoring of MQTT availability ( #20136 )
...
* Small refactor of MQTT availability
* Use dict[key] for required config keys and keys with default values.
2019-01-15 14:26:37 -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
Paulus Schoutsen
96b8c517f0
Update translations
2019-01-13 09:38:22 -08:00
Fredrik Erlandsson
b9a488912a
Add support for 'via_hub' for device_info ( #19454 )
...
* Add support for 'via_hub'
* Update config schema
* add domain to via_hub
* add tests for via_hub
2019-01-11 13:11:13 -08:00
Paulus Schoutsen
9aed40a88d
Update translations
2019-01-09 15:29:31 -08:00
emontnemery
dd75c49796
Cleanup if discovered mqtt switch can't be added ( #19721 )
...
* Cleanup if discovered mqtt switch can't be added
2019-01-07 16:57:51 +01:00
Tommy Jonsson
ccbc231d3a
[2/3] vacuum mqtt-discovery ( #19478 )
...
* add discoverability to mqtt-vacuum
2019-01-06 17:05:04 +01:00
Daniel Chesterton
61d5b3028d
Add support for color_temp_command_template in MQTT light component ( #19675 )
...
* Add support for color_temp_command_template in MQTT light component
2019-01-01 15:42:41 +01:00
emontnemery
a8797a08c6
Improve handling of MQTT light discovery ( #19436 )
2018-12-24 14:28:26 +01:00
emontnemery
edb7ec78f9
Fix support for base topic for empty values in MQTT discovery msg ( #19501 )
...
* Fix topic expansion for short strings
* Lint
2018-12-24 14:21:58 +01:00
emontnemery
1568de62df
Correct calls to subscription.async_unsubscribe_topics ( #19414 )
...
* Correct calls to subscription.async_unsubscribe_topics
* Review comments
* Add testcases
2018-12-19 14:05:24 +01:00
Paulus Schoutsen
fe2d24c240
Update translations
2018-12-10 09:54:12 +01:00
emontnemery
5ff7563070
Merge pull request #18923 from emontnemery/mqtt_binary_sensor_json_attributes_topic
...
Add JSON attribute topic to MQTT binary sensor
2018-12-07 07:48:55 +01:00
Paulus Schoutsen
83311df933
Add translations
2018-12-06 00:30:33 +01:00
Erik
df346feb65
Review comments
2018-12-05 19:48:44 +01:00
Erik
f54710c454
Fix bug when reconfiguring MQTT availability
2018-12-04 21:25:18 +01:00
Erik
21197fb968
Review comments
2018-12-04 19:56:34 +01:00
Otto Winter
c8d92ce907
Fix MQTT re-subscription logic ( #18953 )
...
* Fix MQTT re-subscription logic
* Cleanup
* Lint
* Fix
2018-12-03 19:16:58 +01:00
Erik
b9ad19acbf
Add JSON attribute topic to MQTT binary sensor
...
Add MqttAttributes mixin
2018-12-02 17:00:31 +01:00
emontnemery
a9990c130d
Revert change to MQTT discovery_hash introduced in #18169 ( #18763 )
2018-11-30 13:57:17 +01:00
Adam Mills
5c3a4e3d10
Restore states through a JSON store instead of recorder ( #17270 )
...
* Restore states through a JSON store
* Accept entity_id directly in restore state helper
* Keep states stored between runs for a limited time
* Remove warning
2018-11-28 13:16:43 +01:00
emontnemery
16e3ff2fec
Mqtt light refactor ( #18227 )
...
* Rename mqtt light files
* Refactor mqtt light
* Remove outdated testcase
* Add backwards compatibility for MQTT discovered MQTT lights.
Refactor according to review comments.
2018-11-27 14:00:05 +01:00
Paulus Schoutsen
3c92aa9ecb
Update translations
2018-11-26 14:30:21 +01:00
Erik
b198bb441a
Support updated MQTT QoS when reconfiguring MQTT availability
2018-11-23 15:32:24 +01:00
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
jmtatsch
703eea0c93
Enable autodiscovery for mqtt cameras ( #13697 )
...
* Enable autodiscovery for mqtt cameras, BREAKING CHANGE: homogenisation topic->state_topic
* fix line too long
* fix topic->state_topic in test
* image shall not be the state of entity
2018-04-06 00:11:38 -04:00
Erik Eriksson
1cbf9792d7
Support MQTT Lock discovery ( #13303 )
2018-03-18 09:26:07 -07:00
Paulus Schoutsen
5a9013cda5
Refactor Hue: phue -> aiohue ( #13043 )
...
* phue -> aiohue
* Clean up
* Fix config
* Address comments
* Typo
* Fix rebase error
* Mark light as unavailable when bridge is disconnected
* Tests
* Make Throttle work with double delay and async
* Rework update logic
* Don't resolve host to IP
* Clarify comment
* No longer do unnecessary updates
* Add more doc
* Another comment update
* Wrap up tests
* Lint
* Fix tests
* PyLint does not like mix 'n match async and coroutine
* Lint
* Update aiohue to 1.2
* Lint
* Fix await MagicMock
2018-03-16 20:27:05 -07:00
Otto Winter
5958e6a60f
Improve MQTT failed connection error message ( #13184 )
2018-03-13 13:56:16 -07:00
Matthias Urlichs
f5cc40024d
Rename homeassistant.util.async to .async_ ( #13088 )
...
"async" is (going to be) a reserved word.
2018-03-11 10:01:12 -07:00
Otto Winter
d3386907a4
MQTT Python 3.5 Async Await Syntax ( #12815 )
...
* MQTT Async Await
* Remove unused decorator.
2018-03-01 15:06:26 -08:00
Otto Winter
c1aaef28a9
MQTT Static Typing ( #12433 )
...
* MQTT Typing
* Tiny style change
* Fixes
I should've probably really sticked to limiting myself to static typing...
* Small fix 😩
Ok, this seriously shouldn't have happened.
2018-02-28 22:59:14 +01:00
Otto Winter
8645f244da
Fix MQTT async_add_job in sync context ( #12744 )
2018-02-27 11:18:20 -08:00
Otto Winter
5d4b1ecd3b
Fix MQTT payload decode returning prematurely ( #12420 )
...
* Fix MQTT returning prematurely
* Add test
2018-02-14 22:00:49 -08:00
Otto Winter
b1c0cabe6c
Fix MQTT retained message not being re-dispatched ( #12004 )
...
* Fix MQTT retained message not being re-dispatched
* Fix tests
* Use paho-mqtt for retained messages
* Improve code style
* Store list of subscribers
* Fix lint error
* Adhere to Home Assistant's logging standard
"Try to avoid brackets and additional quotes around the output to make it easier for users to parse the log."
- https://home-assistant.io/developers/development_guidelines/
* Add reconnect tests
* Fix lint error
* Introduce Subscription
Tests still need to be updated
* Use namedtuple for MQTT messages
... And fix issues
Accessing the config manually at runtime isn't ideal
* Fix MQTT __init__.py tests
* Updated usage of Mocks
* Moved tests that were testing subscriptions out of the MQTTComponent test, because of how mock.patch was used
* Adjusted the remaining tests for the MQTT clients new behavior - e.g. self.progress was removed
* Updated the async_fire_mqtt_message helper
* ✅ Update MQTT tests
* Re-introduce the MQTT subscriptions through the dispatcher for tests - quite ugly though... 🚧
* Update fixtures to use our new MQTT mock 🎨
* 📝 Update base code according to comments
* 🔨 Adjust MQTT test base
* 🔨 Update other MQTT tests
* 🍎 Fix carriage return in source files
Apparently test_mqtt_json.py and test_mqtt_template.py were written on Windows. In order to not mess up the diff, I'll just redo the carriage return.
* 🎨 Remove unused import
* 📝 Remove fire_mqtt_client_message
* 🐛 Fix using python 3.6 method
What's very interesting is that 3.4 didn't fail on travis...
* 🐛 Fix using assert directly
2018-02-11 09:17:58 -08:00
Anders Melchiorsen
8267a21bfe
Lazy loading of service descriptions ( #11479 )
...
* Lazy loading of service descriptions
* Fix tests
* Load YAML in executor
* Return a copy of available services to allow mutations
* Remove lint
* Add zha/services.yaml
* Only cache descriptions for known services
* Remove lint
* Remove description loading during service registration
* Remove description parameter from async_register
* Test async_get_all_descriptions
* Remove lint
* Fix typos from multi-edit
* Remove unused arguments
* Remove unused import os
* Remove unused import os, part 2
* Remove unneeded coroutine decorator
* Only use executor for loading files
* Cleanups suggested in review
* Increase test coverage
* Fix races in existing tests
2018-01-07 14:54:16 -08:00
Dan Nixon
f0bf7b0def
More support for availability reporting on MQTT components ( #11336 )
...
* Abstract MQTT availability from individual components
- Moved availability topic and payloads to MQTT base schema.
- Updated components that already report availability:
- Switch
- Binary sensor
- Cover
* Add availability reporting to additional MQTT components
- Light
- JSON light
- Template light
- Lock
- Fan
- HVAC
- Sensor
- Vacuum
- Alarm control panel
* Annotate MQTT platform coroutines
2018-01-01 18:32:29 -08:00
Cezar Sá Espinola
b8b4e32758
Make MQTT reconnection logic more resilient and fix race condition ( #10133 )
2017-11-17 10:29:23 -08:00
Mitko Masarliev
bd5a16d70b
update hbmqtt to 0.9.1 ( #10611 )
2017-11-16 07:47:37 -08:00
marthoc
309e493e76
Add code to enable discovery for mqtt cover ( #10580 )
...
* Add code to enable discovery for mqtt cover
* Fix pylint error
2017-11-14 20:19:15 -08:00
Fabian Affolter
cc293db5ab
Update services.yaml files ( #10229 )
...
* Add period to the description
* Update abbreviation
2017-10-30 21:39:12 +01:00