Commit graph

26123 commits

Author SHA1 Message Date
Chris Talkington
d03248962d
Update to pyipp==0.9.1 (#33819) 2020-04-08 12:44:52 -07:00
Paulus Schoutsen
df744c5944
Speed up TP-Link lights (#33606)
* Speed up TP-Link lights

* Color temp kan be None

* hs as int, force color temp=0

* Fix color temp?

* Additional tplink cleanups to reduce api calls

* Update test to return state, remove Throttle

* Fix state restore on off/on

* Fix lights without hue/sat

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-04-08 14:36:45 -05:00
danbishop
292dcb7e37
Update sensor.py (#33788)
Add missing semi-colons to html entities on notification message
2020-04-08 13:07:43 -06:00
Paulus Schoutsen
173c276c5c Lint 2020-04-08 12:03:56 -07:00
Robert Van Gorkom
ea709d0630
Remove withings sleep state (#33817) 2020-04-08 11:57:42 -07:00
J. Nick Koston
cec3b57390
Fix thermostats that do not support off under homekit (#33809)
TargetHeatingCoolingState: value=0 is an invalid value.
would be raised when a thermostat did not support
off.
2020-04-08 11:56:11 -07:00
Jason Cheatham
3b246fb40a
Load integrations with requirements in device_automation (#33714)
* Load integrations with requirements in device_automation

- Split cached loader behavior out of async_get_integration
- Use cached loader for both async_get_integration and
  async_get_integration_with_requirements
- Use async_get_integration_with_requirements for device_automation

resolves #33104

* Duplicate caching logic in requirements, remove loader mods

* Update homeassistant/requirements.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-04-08 11:42:15 -07:00
Paulus Schoutsen
5ff50e8b4f
Update aioswitcher (#33821) 2020-04-08 11:13:08 -07:00
Paulus Schoutsen
10d25c798e
Add script to clean up translations (#33802) 2020-04-08 10:48:36 -07:00
Martin Hjelmare
c3decc6531
Do not ban supervisor ip if set (#33781)
* Use asynctest patch instead of mock_coro

* Add test for supervisor ip ban

* Do not ban supervisor ip if set

* Extract supervisor ip helper

* Check supervisor ip before banning

* Remove added blank line

* Clean up get supervisor ip

Co-Authored-By: Pascal Vizeli <pvizeli@syshack.ch>

Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-04-08 10:31:44 -07:00
springstan
8d61893c39
Use HTTP_OK constant (#33798)
* Use http ok constant

* Remove incorrect use

* Run isort

* Fix pylint by adding missing imports

* Fix pylint by fixing one import
2020-04-08 11:47:38 -05:00
J. Nick Koston
7383e81609
Convert nut to a multi step config flow (#33803)
* Convert nut to a multi step config flow

* Users can now choose the ups they want in
step 2 (or skipped if only one)

* Users can now select the resources they want
to monitor based on what is actually available
on the device

* CONF_NAME has been removed as we now get the
name from NUT

* Device classes have been added which allows
the battery charge state to be seen in the
devices UI

* Remove update_interval as its for a followup PR

* explict

* reduce

* fix bug, add tests for options flow

* Test for dupe import

* Test for dupe import

* Call step directly

* Update homeassistant/components/nut/config_flow.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-04-08 11:45:45 -05:00
Franck Nijhof
db9b6aba31
Merge branch 'master' into dev 2020-04-08 18:42:50 +02:00
Jason Swails
1c4b563e54
Bump pylutron-caseta version to 0.6.1 (#33815) 2020-04-08 18:39:36 +02:00
Franck Nijhof
57bbbbcf26
Update translations 2020-04-08 17:24:53 +02:00
MatthewFlamm
a3e84791c6
Convert nws integration to component configuration (#31398)
* convert nws to component configuration

* add more debug logging

* remove assumed state

* move initialization of data into init

* refactor update logic

* use forecast success for checking available entities

* Split unique_id into more usable pieces.

use a base_unique_id for each entry.  Add domain for signaling to entities.  Each entity in each platform can use base_unique_id to form individual unique_id's.

* Revert "move initialization of data into init"

This reverts commit 09eb0220469285b10f0500f5f6def67415931a81.

* add silver quality scale to manifest

* unsubscribe listener in will_remove_from_hass

* initialize _unsub_listener in __init__

* use async_on_remove

* remove scan interval from configuration

* Use better name

Co-Authored-By: J. Nick Koston <nick@koston.org>

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-04-08 10:22:25 -05:00
René-Marc Simard
f5b7deda72
Add counters for GitHub repo forks, clones, views (#33300)
* Add counters for GitHub repo forks, clones, views

* Rename uniques to unique
2020-04-08 09:52:39 -05:00
Franck Nijhof
38158376b3
Merge pull request #33814 from home-assistant/rc
0.108.0
2020-04-08 16:04:35 +02:00
springstan
245eae89eb
Bump pyW215 to 0.7.0 (#33786) 2020-04-08 14:37:55 +02:00
Franck Nijhof
837f7638cf
Bumped version to 0.108.0 2020-04-08 14:05:04 +02:00
Bram Kragten
9675cc5ed2
Updated frontend to 20200407.1 (#33799) 2020-04-08 13:47:43 +02:00
Franck Nijhof
b0978f064f
Upgrade shodan to 1.23.0 (#33811) 2020-04-08 13:12:18 +02:00
Franck Nijhof
14f035a39b
Upgrade sqlalchemy to 1.3.16 (#33810) 2020-04-08 13:12:07 +02:00
Franck Nijhof
035b28045c
Update translations 2020-04-08 13:02:45 +02:00
springstan
c6c7dd10f5
Clean up access to config in various integrations (#33759) 2020-04-08 12:59:38 +02:00
Paulus Schoutsen
ba8ae17487
Fix hue ct (#33791) 2020-04-08 11:31:41 +02:00
HomeAssistant Azure
ad619817c6 [ci skip] Translation update 2020-04-08 00:08:19 +00:00
Matt Snyder
8b5ab3221f
Handle QVR Pro dropping connection (#33591)
* Handle QVR Pro dropping connection

* Update homeassistant/components/qvr_pro/camera.py

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>

* Update homeassistant/components/qvr_pro/manifest.json

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-04-07 16:19:31 -07:00
springstan
eae21be5b9
Improve string formatting v6 (#33698) 2020-04-07 23:14:28 +02:00
springstan
d7e3b0b755
Clean up access to config in various integrations v2 (#33763) 2020-04-07 22:45:56 +02:00
Bram Kragten
d95ffb3aa3
Updated frontend to 20200407.1 (#33799) 2020-04-07 13:42:17 -07:00
springstan
46bbe816f6
Remove None from dict.get(key, None) (#33794) 2020-04-07 21:06:05 +02:00
Chris Talkington
d54ee77375
Update directv remote platform tests service calls (#33793)
* Update test_remote.py

* Update test_remote.py
2020-04-07 11:57:51 -07:00
Paulus Schoutsen
265666b75a Bumped version to 0.108.0b6 2020-04-07 10:29:24 -07:00
Ziv
4901fa24ec Fix unhandled exceptions for config, default_config, harmony (#33731)
* replaced MagicMock with CoroutineMock to avoid exception

* added conversion to str so mock returns unique-id that doesn't throw json exception

* added non-empty config since hass throws exception when config is empty
2020-04-07 10:29:15 -07:00
jjlawren
d92d74a14f Fix minor async issues in Plex (#33785)
* Fix minor async context issues

* Annotate callback
2020-04-07 10:23:54 -07:00
J. Nick Koston
b9336272d4 Fix nuheat reverting to auto mode after setting temp hold (#33772)
* Fix nuheat reverting to auto mode after setting temp hold

* clamp temp
2020-04-07 10:23:53 -07:00
J. Nick Koston
1bd1b8339d Update nexia for thermostats without zoning (#33770)
* Bump nexia to 0.8.0
2020-04-07 10:23:26 -07:00
J. Nick Koston
078ce6766e
Add discovery support to synology_dsm (#33729)
* Add discovery support to synology_dsm

* Remove debug

* black

* Fix mocks

* Merge strings

* Move placeholders

* add missing placeholders

* reorder

* use constants in test

* Remove CONF_NAME (only displayed in discovery now)

* test reduction

* Shorten long name

* Use name for name but NOT for unique_id, remove CONF_NAME from yaml config

* Use Synology for the name for now, hopefully we can use the hostname later

* lint

* Remove name from strings

* remove =None

* show login errors at username field

* Update tests/components/synology_dsm/test_config_flow.py

Co-Authored-By: Quentame <polletquentin74@me.com>

* Update tests/components/synology_dsm/test_config_flow.py

Co-Authored-By: Quentame <polletquentin74@me.com>

* Update homeassistant/components/synology_dsm/const.py

Co-authored-by: Quentame <polletquentin74@me.com>
2020-04-07 10:22:35 -07:00
Chris Talkington
abdee3fcb7 Catch IPPParseError during config flow (#33769)
* Update config_flow.py

* Update strings.json

* Update config_flow.py

* squash.
2020-04-07 10:22:04 -07:00
jjlawren
3873b23704
Fix minor async issues in Plex (#33785)
* Fix minor async context issues

* Annotate callback
2020-04-07 10:17:16 -07:00
J. Nick Koston
81569f10c0
Fix nuheat reverting to auto mode after setting temp hold (#33772)
* Fix nuheat reverting to auto mode after setting temp hold

* clamp temp
2020-04-07 10:16:31 -07:00
Paulus Schoutsen
8fb89854d3
Fix flaky TP-Link test (#33790) 2020-04-07 10:13:55 -07:00
Paulus Schoutsen
9d38413e7c
Upgrade hass-cloud to 0.34 (#33789) 2020-04-07 09:59:04 -07:00
Erik Montnemery
ddef681dd2
Improve MQTT debug info for subscriptions with wildcard (#33752) 2020-04-07 09:38:22 -07:00
Ziv
3697ea7b27
Remove uncaught exceptions from rflink (#33709)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-04-07 09:37:54 -07:00
Franck Nijhof
bb8bbc9c54
Collection of tests improvements (#33778) 2020-04-07 09:36:35 -07:00
Ziv
bee742994e
Fix uncaught exceptions for discovery, unify_direct, spotify,… (#33735)
* used coroutinemock to avoid exception

* added spec to mock to remove exception

* added the current_user return value so it doesnt throw exception

* fix the mocks so properties do not need .return_value

* fixed missing mock values that were causing exceptions

* moved patch to asynctest so no need to define m_init

* fixed black error
2020-04-07 09:34:13 -07:00
Franck Nijhof
60bc517d01
Collection of core tests improvements (#33757)
* Collection of core tests improvements

* Added some more

* Fix aiohttp client response release
2020-04-07 09:33:23 -07:00
Chris Talkington
1f7803c541
Catch IPPParseError during config flow (#33769)
* Update config_flow.py

* Update strings.json

* Update config_flow.py

* squash.
2020-04-07 09:32:43 -07:00