Commit graph

21871 commits

Author SHA1 Message Date
Ville Skyttä
381d423fec Upgrade mypy to 0.740 (#27913)
* Upgrade mypy to 0.740

http://mypy-lang.blogspot.com/2019/10/mypy-0740-released.html

* Type hint additions

* Type fixes

* Remove no longer needed type ignores and casts

* Disable untyped definition checks in bunch of files
2019-10-19 11:35:57 -07:00
Paulus Schoutsen
758fcc9b00
Remove helper imports relying on installed requirements (#27898) 2019-10-19 11:33:21 -07:00
bouni
9ec0602986 Move imports in cpuspeed component (#27890) 2019-10-19 20:33:05 +02:00
Greg Rapp
840001e168 Added night arm mode support to Envisalink component (#27087) 2019-10-19 11:26:07 -07:00
SukramJ
de1477f00b Bump version of homematicip to 0.10.13 (#27928)
The Home websocket can now automatically reopen a lost connection (default)
2019-10-19 18:24:28 +02:00
Quentame
8c0deeb176 Move imports in luftdaten component (#27929) 2019-10-19 18:22:32 +02:00
SukramJ
eb48898687 Add climate profiles to Homematic IP Cloud (#27772)
* Add climate service to Homematic IP Cloud to select the active profile

* Add  profiles ass presets

* fix spelling

* Re-Add PRESET_NONE for selection

* Boost is a manual mode

* Fixes based on review

* Fixes after review
2019-10-19 17:44:40 +02:00
guillempages
f2617fd74a Split homematic color and effect support (#27299)
* [homematic] Split color and effect support

There are homematic devices (like HmIP-BSL) that support color but
do not support effects.
Split the support, so that color can be supported even if effects are not.

* Make effect fully independent of color

If a device supports effects for e.g. just brightness, it shouldn't be coupled to the color
2019-10-19 14:40:42 +02:00
Pascal Vizeli
1c0814d6f6
Run pylint parallel (#27919) 2019-10-19 13:42:49 +02:00
Pascal Vizeli
1f96a7becf
Update azure-pipelines-ci.yml 2019-10-19 12:31:40 +02:00
Ville Skyttä
1ec01b5e6c Upgrade pylint to 2.4.3 and astroid to 2.3.2 (#27912)
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-3
2019-10-19 12:03:52 +02:00
Joakim Plate
2bd9f5680d Report state (#27759)
* Add report state config

* Add initial steps for local report state

* Use owner of system as user_id

* First working prototype

* Only report state if requested

* Add some good logging and adjust constant name

* Move jwt generation out to non member

* Move cache out to caller

* Remove todo about cache

* Move getting token out of class

* Add timeout on calls

* Validate config dependency

* Support using service key to do sync call when api_key is not set

* Make sure timezone is fixed for datetime dummy

* Use exact expire_in time

* Support renewing token on 401

* Test retry on 401

* No need to declare dummy key twice

* Correct some docs on functions

* Add test for token expiry
2019-10-18 22:37:44 -07:00
Paulus Schoutsen
6303117354
Dont create coroutine until acting on it (#27907) 2019-10-18 20:58:43 -07:00
Brig Lamoreaux
37b23e9205 Move imports to top for harman_kardon_avr (#27903) 2019-10-18 20:58:15 -07:00
Brig Lamoreaux
1e727f339f Move imports in harmony component (#27904) 2019-10-18 20:58:07 -07:00
Paulus Schoutsen
00521b5e80
Fix flaky integration test (#27905) 2019-10-18 20:57:54 -07:00
Brig Lamoreaux
0cd55d6716 Move imports for hp_ilo components (#27906) 2019-10-18 20:57:47 -07:00
Brig Lamoreaux
2110fea02b Move import for htu21d component (#27908) 2019-10-18 20:57:36 -07:00
Pascal Vizeli
435cbb7f7e Azure pytest parallel (#27864)
* Azure pytest parallel

* Update azure-pipelines-ci.yml

* Remove test that does nothing
2019-10-18 20:51:53 -07:00
Santobert
7ed659151c Vacuum reproduce state (#27868)
* Vacuum reproduce state

* Add missing states

* Improved process

* Fix tests
2019-10-18 19:49:08 -07:00
Paulus Schoutsen
6391a68fd5 Better header check for OAuth2 helper (#27897) 2019-10-18 20:11:54 -05:00
foreign-sub
914ceea72d Bump keyring to 19.2.0 (#27899) 2019-10-18 20:09:41 -05:00
Paulus Schoutsen
d98114d2ab Guard cloud check (#27901)
* Guard cloud check

* Fix pos args
2019-10-18 20:08:53 -05:00
HomeAssistant Azure
9e8c391c81 [ci skip] Translation update 2019-10-19 00:32:15 +00:00
Heine Furubotten
065c6f4c9c Move imports for nilu component (#27896) 2019-10-19 01:05:36 +02:00
bouni
6df34a0128 Move imports in channels component (#27876) 2019-10-19 01:04:10 +02:00
bouni
422885b7fd Move imports in buienradar component (#27873) 2019-10-19 01:02:54 +02:00
bouni
d78f14b20a Move imports in canary component (#27874) 2019-10-19 01:01:59 +02:00
bouni
dc5d38128c Move imports in cast component (#27875) 2019-10-19 00:59:58 +02:00
bouni
8cf443110a Move imports in cisco_mobility_express component (#27877) 2019-10-19 00:59:07 +02:00
bouni
29ef49fdd9 Move imports in coolmaster component (#27888) 2019-10-19 00:57:59 +02:00
Brig Lamoreaux
535da96d4d Move imports to top for hikvisioncam (#27895) 2019-10-19 00:56:59 +02:00
Bram Kragten
8e3d210818 Add remove function to hue sensors (#27652)
* Add remove function to sensors

* Fix + comments

* Update light.py
2019-10-18 15:41:11 -07:00
bouni
1d8e366278 Move imports in cloud component (#27881) 2019-10-18 15:39:37 -07:00
bouni
b2b140e8d0 Move imports in cmus component (#27883) 2019-10-19 00:26:58 +02:00
bouni
7ed5616faa Move imports in cisco_webex_teams component (#27878) 2019-10-19 00:23:16 +02:00
bouni
d7a8a635ba Move imports in ciscospark component (#27879) 2019-10-19 00:14:49 +02:00
bouni
2e416168cf Move imports in coinbase component (#27884) 2019-10-19 00:05:42 +02:00
bouni
b11dc0f50f Move imports in coinmarketcap component (#27885) 2019-10-19 00:04:37 +02:00
bouni
93db814b15 Move imports in comfoconnect component (#27886) 2019-10-19 00:01:03 +02:00
bouni
dc30119d20 Move imports in concord232 component (#27887) 2019-10-19 00:00:00 +02:00
bouni
c333daab10 Move imports in cppm_tracker component (#27889) 2019-10-18 23:58:00 +02:00
springstan
2a95180d3b Move imports in fritzbox, fritz device tracker, fritzdect, fritzbox netmonitor (#27746)
* Moved imports to top-level in fritzbox_netmonitor component

* Moved imports to top-level in fritz, fritzbox and fritzdect
2019-10-18 14:54:56 -07:00
Paulus Schoutsen
b6c26cb363
Introduce new OAuth2 config flow helper (#27727)
* Refactor the Somfy auth implementation

* Typing

* Migrate Somfy to OAuth2 flow helper

* Add tests

* Add more tests

* Fix tests

* Fix type error

* More tests

* Remove side effect from constructor

* implementation -> auth_implementation

* Make get_implementation async

* Minor cleanup + Allow picking implementations.

* Add support for extra authorize data
2019-10-18 13:06:33 -07:00
bouni
6157be23dc Move imports in cloudflare integration(#27882) 2019-10-18 21:32:14 +02:00
Ville Skyttä
103ffacea7 Use pre-commit in CI and tox (#27743) 2019-10-18 12:20:26 -07:00
Paulus Schoutsen
a119932ee5
Refactor the conversation integration (#27839)
* Refactor the conversation integration

* Lint
2019-10-18 11:46:45 -07:00
Malte Franken
83a709b768 Move imports in recorder component (#27859)
* move imports to top-level in recorder init

* move imports to top-level in recorder migration

* move imports to top-level in recorder models

* move imports to top-level in recorder purge

* move imports to top-level in recorder util

* fix pylint
2019-10-18 10:14:54 -07:00
bouni
e95b8035ed Move imports in blinksticklight component (#27851) 2019-10-18 17:15:20 +02:00
bouni
bb76678b36 Move imports in blink component (#27850) 2019-10-18 17:14:50 +02:00