Joakim Plate
84a7115435
Start of using hass state for tests rather than direct object ( #29377 )
2019-12-15 13:14:50 +01:00
Jeff Irion
8a5bce81c8
Bump adb-shell to 0.1.0 and androidtv to 0.0.36 ( #29938 )
...
* Bump adb-shell to 0.1.0 and androidtv to 0.0.36
* Add test for setting up two devices
* Add test_setup_same_device_twice
* Fix test_setup_two_devices
* Fix coverage
* Coverage
* Fix flaky 'test_setup_two_devices'
* Another stab at coverage
* Rename 'address' back to 'host'
2019-12-15 11:31:59 +01:00
Raman Gupta
003658a3f0
Update androidtv version to improve source selection support ( #29579 )
...
* Change androidtv module versions and add support for select_source for all device types
* Update and add tests
* Update requirements_test_all.txt
* Update requirements_all.txt
* Consolidate tests
* Fix typo
* Remove 'self._device'
2019-12-14 16:54:41 +01:00
ochlocracy
3db7e8f5e9
Implement Alexa.EventDetectionSensor for Alexa ( #28276 )
...
* Implement Alexa.EventDetectionSensor Interface
* Removed references to PR #28218 not yet merged into dev.
* Update tests to include Alexa Interface
* Guard for `unknown` and `unavailible` states.
* Fixed Unnecessary "elif" after "return"
2019-12-14 08:47:45 +01:00
Franck Nijhof
b91a8f510c
Fix incorrect file format yr test fixure ( #29910 )
2019-12-13 12:29:24 +01:00
Bas Nijholt
c59bf0bff6
`genericpath` is an internal Python module and shouldn't be imported according to core Python devs. (see [this]( https://bugs.python.org/msg358136 ) comment) ( #29903 )
...
For a reason unknown to me, @exxamalte introduced this in https://github.com/home-assistant/home-assistant/pull/14342 .
The problem is that Linux and macOS implement `os.path` differently, one imports from [`ntpath.py`](https://github.com/python/cpython/blob/master/Lib/ntpath.py ) and the other one from [`posixpath.py`](https://github.com/python/cpython/blob/master/Lib/posixpath.py ), and both these files use `genericpath.py`.
Somehow, `isort` on macOS will see `genericpath` as a third party library and sort it accordingly.
Other Unix-based OSes will correctly treat `genericpath` as an internal library.
This problem led to a sorting sequence in the following commits:
- ca0fad2cbb
- f5d4878992
- 7d68e88d31
- 1fee400dcd
This supersedes https://github.com/home-assistant/home-assistant/pull/29893 .
2019-12-13 09:47:09 +01:00
John Luetke
7c42f4b45b
(Re)Add support for multiple Pi-Holes ( #27569 )
...
* Update configuration schema to support multiple Pi-holes
* Construct sensors for each configured Pi-hole
* Ensure each Pi-hole has a unique name
* Update services to handle multiple Pi-holes
* Update tests for multiple configurations
* Refactor tests to support service testing
* Fix else-raise per pyliunt
* Per code review, add all entities in a single call
* Per code review, add the default name as default.
* Per code review, add cv.ensure_list to prevent breaking change
* Per code review, move name validation to schema
* Remove default name
* Per code review, validate api_key in schema definition
* Per code review, rename variables
* Per code review, use list comprehension
* Ensure unique slug names in config validation
* Per code review, refactor to CoroutineMock
* Fix adding sensor entities
* Per code review, refactor mock function creation
* Per code review, refactor mock function return values
2019-12-12 19:43:49 +01:00
Alexei Chetroi
1fee400dcd
Revert "Sort import for tests/components/feedreader/test_init.… ( #29882 )
...
This reverts commit 7d68e88d31
.
2019-12-12 17:10:43 +01:00
Ville Skyttä
130571c478
Remove no longer needed auth.util, use secrets instead ( #29861 )
2019-12-12 16:46:33 +01:00
Bas Nijholt
7d68e88d31
Sort import for tests/components/feedreader/test_init.py ( #29878 )
...
This unblocks https://github.com/home-assistant/home-assistant/pull/29739
2019-12-12 15:56:32 +01:00
Tiit Rätsep
01ef44fd68
Fix Soma integration connection issue ( #27692 )
...
* Added a check for Connect actually returning something before telling the user the setup succeeded
* Added handling for KeyError in case API returns empty response, formatting
* Trying to please the linter
2019-12-11 13:27:28 +01:00
Ville Skyttä
a12cf7211d
Upgrade pydocstyle to 5.0.1 ( #29830 )
...
* 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
Alexei Chetroi
3ed1738f76
Fix input_text initialization with empty config. ( #29829 )
2019-12-10 23:24:33 +01:00
Robert Van Gorkom
66d2f5f61d
Fix withings wrong sleep state entry ( #29651 )
...
* Fixing issue where wrong sleep state entry was being used. closes #28370,#29397
* Fixing formatting.
* Sorting imports to get black checks to pass.
* Using lambda for getting latest sleep serie.
2019-12-10 21:54:50 +01:00
Robert Svensson
99328bd4c1
UniFi - honor detection time when UniFi wire bug happens ( #29820 )
2019-12-10 20:05:18 +01:00
Franck Nijhof
f5d4878992
Fix isort on a small set of misc files ( #29803 )
2019-12-10 09:25:42 +01:00
Ian
4f1f4a1b4f
Nextbus: Sort results for upcoming times ( #29811 )
...
Sort upcoming times across all direction's for a particular route and
stop.
2019-12-10 09:22:13 +01:00
Alexei Chetroi
315d0064fe
Fix zha circular import ( #29802 )
...
* Refactor zha.core.helpers.
* Make zha isort-able.
* Const import reorg.
* Keep DATA_ZHA config key on entry unload.
* Cleanup ZHA config flow.
* isort.
* Add test.
2019-12-10 00:00:04 -05:00
Alexei Chetroi
454cc684e4
Add input_select reload service. ( #29647 )
...
* Add input_select reload service.
* Add test.
2019-12-09 21:15:32 +01:00
Alexei Chetroi
8c1cdc0cf7
Add input_text reload service. ( #29644 )
...
* Add input_text reload service.
* Add test.
2019-12-09 21:15:24 +01:00
David F. Mulcahey
1222aa8c56
Add ZHA group API ( #29641 )
...
* add skeleton to retrieve zigbee groups
* get single group
* add a group
* return group members with group
* add comment
* fix group members
* add function to add device to group
* add group members
* add remove from group method
* add api to remove members from group
* add remove groups method
* clean up group add and remove
* fix remove group
* fix remove groups
* add api to get only groupable devices
* change var init
* add tests
* address review comment
2019-12-09 14:50:04 -05:00
Bas Nijholt
7f948594eb
Sort imports according to PEP8 for google_assistant ( #29633 )
...
* sort imports and fix flake8 issue for google
* add isort:skip to EVENT_SYNC_RECEIVED
2019-12-09 20:00:14 +01:00
Bas Nijholt
e37443f10c
Sort imports according to PEP8 for components starting with "U" ( #29779 )
...
* use isort to sort imports for components starting with 'u'
* add 'pylint: disable=import-error' to the right place
2019-12-09 19:07:32 +01:00
Bas Nijholt
80c344d3a8
Sort imports according to PEP8 for huawei_lte ( #29664 )
2019-12-09 19:06:25 +01:00
Bas Nijholt
080c702d4f
Sort imports according to PEP8 for components starting with "C" ( #29763 )
2019-12-09 18:56:21 +01:00
Bas Nijholt
6cc75fc6f3
Sort imports according to PEP8 for components starting with "Z" ( #29784 )
...
* use isort to sort imports for components starting with 'z'
* add skip to end of zha/core/channels/__init__.py
* put 'pylint: disable=import-error' at the right place
* remove the import of config_flow in zha/__init__.py
According to @balloob it is no longer needed.
* revert previous commit
* isort:skip homeassistant/components/zha/__init__.py completely
2019-12-09 18:54:54 +01:00
springstan
6b6570e7ca
Move imports to top for ness_alarm ( #29518 )
...
* Move imports to top for ness_alarm
* Added patch for the ArminState in alarm_control_panel.py
2019-12-09 18:46:56 +01:00
Bas Nijholt
08f128e9c7
Sort imports according to PEP8 for components starting with "D" ( #29764 )
...
* use isort to sort imports for components starting with 'd'
* fix isort mistake
2019-12-09 17:42:00 +01:00
Quentame
c804f8f961
Add config flow to iCloud ( #28968 )
...
* iCloud: setup ConfigFlow and prepare for more platforms
- add config flow + tests
- fix existing services
- add play_sound & display_message services
- document services
- can use devices with the same name
- prepare to add sensor platform
* Review : not copy account conf
* Review: Safer test patch
* Review: remove reset_account
* Review: Use executor_job while IO
* Review: Use executor_job while IO 2
* Review: use hass.helpers.storage.Store()
* Review: no IO in tests
* Remove reset from services.yaml
* Review: remove authenticate.return_value = Mock()
* Review: do not initialize the api with the mocked service
* isort
* Review: @MartinHjelmare Test config flow with all steps
* Review: Fix failed tests names
* Codevov: Add one missing test
2019-12-09 17:19:42 +01:00
springstan
72f336a2dd
Move imports to top for homekit ( #29560 )
...
* Move imports to top for homekit
* Moved back a couple imports, added annotation to disable import-outside-toplevel
* Fix all tests in test_homekit.py
2019-12-09 16:10:02 +01:00
Bas Nijholt
96a6a44411
Sort imports according to PEP8 for components starting with "X" ( #29782 )
2019-12-09 14:58:51 +01:00
Bas Nijholt
9bcd4653e0
Sort imports according to PEP8 for components starting with "Y" ( #29783 )
2019-12-09 14:57:42 +01:00
Bas Nijholt
4035fda659
Sort imports according to PEP8 for components starting with "Q" ( #29785 )
2019-12-09 14:56:20 +01:00
Bas Nijholt
fbf1836997
Sort imports according to PEP8 for components starting with "W" ( #29781 )
2019-12-09 14:47:53 +01:00
Bas Nijholt
1ab1808307
Sort imports according to PEP8 for components starting with "N" ( #29773 )
2019-12-09 14:46:24 +01:00
Bas Nijholt
ee1cc3b3dd
Sort imports according to PEP8 for components starting with "V" ( #29780 )
2019-12-09 14:42:53 +01:00
Bas Nijholt
de915e1bf0
Sort imports according to PEP8 for components starting with "T" ( #29778 )
2019-12-09 14:41:48 +01:00
Bas Nijholt
485761bbaf
Sort imports according to PEP8 for components starting with "R" ( #29776 )
2019-12-09 14:39:51 +01:00
Bas Nijholt
23b92b2a56
Sort imports according to PEP8 for components starting with "S" ( #29777 )
2019-12-09 14:38:01 +01:00
Bas Nijholt
21816eeed4
Sort imports according to PEP8 for components starting with "P" ( #29775 )
2019-12-09 14:29:39 +01:00
Bas Nijholt
5cdaff5405
Sort imports according to PEP8 for components starting with "O" ( #29774 )
2019-12-09 14:26:53 +01:00
Bas Nijholt
c49e423c78
Sort imports according to PEP8 for components starting with "K" ( #29770 )
2019-12-09 14:25:18 +01:00
Bas Nijholt
1dea0c9e34
Sort imports according to PEP8 for components starting with "L" ( #29771 )
2019-12-09 14:22:30 +01:00
Bas Nijholt
14779ce3d0
Sort imports according to PEP8 for components starting with "I" ( #29769 )
2019-12-09 14:21:24 +01:00
Bas Nijholt
710680d604
use isort to sort imports for components starting with 'm' ( #29772 )
2019-12-09 18:50:40 +05:30
Bas Nijholt
8b39957c56
Sort imports according to PEP8 for components starting with "H" ( #29768 )
2019-12-09 14:19:48 +01:00
Bas Nijholt
d58e6e924a
Sort imports according to PEP8 for components starting with "G" ( #29767 )
2019-12-09 14:17:36 +01:00
Bas Nijholt
ca0fad2cbb
Sort imports according to PEP8 for components starting with "F" ( #29766 )
2019-12-09 14:14:40 +01:00
Bas Nijholt
f9e06ca2fd
Sort imports according to PEP8 for components starting with "E" ( #29765 )
2019-12-09 14:10:04 +01:00
Bas Nijholt
96961b9bcc
Sort imports according to PEP8 for components starting with "A" ( #29761 )
2019-12-09 13:57:24 +01:00
Bas Nijholt
73de69896b
Sort imports according to PEP8 for components starting with "B" ( #29762 )
2019-12-09 13:52:18 +01:00
Bas Nijholt
9b27e5b86c
Sort imports according to PEP8 for vultr ( #29760 )
2019-12-09 13:33:08 +01:00
Bas Nijholt
c7cf1b820c
Sort imports according to PEP8 for hue ( #29757 )
2019-12-09 13:25:04 +01:00
Bas Nijholt
abfcc18004
Sort imports according to PEP8 for mobile_app ( #29758 )
2019-12-09 13:22:42 +01:00
Bas Nijholt
53012a548b
Sort imports according to PEP8 for sleepiq ( #29759 )
2019-12-09 13:21:45 +01:00
Bas Nijholt
60e1789557
Sort imports according to PEP8 for emulated_roku ( #29756 )
2019-12-09 13:20:51 +01:00
Bas Nijholt
991834f337
Sort imports according to PEP8 for shopping_list ( #29751 )
2019-12-09 13:14:49 +01:00
Bas Nijholt
76debf4c88
Sort imports according to PEP8 for scene ( #29750 )
2019-12-09 13:12:43 +01:00
Bas Nijholt
127d84edd1
Sort imports according to PEP8 for solarlog ( #29752 )
2019-12-09 13:11:37 +01:00
Bas Nijholt
f81e608cc1
Sort imports according to PEP8 for remote ( #29749 )
2019-12-09 13:09:16 +01:00
Bas Nijholt
e9b428781b
Sort imports according to PEP8 for pushbullet ( #29748 )
2019-12-09 13:06:25 +01:00
Bas Nijholt
3df40c7a16
Sort imports according to PEP8 for websocket_api ( #29657 )
2019-12-09 12:30:23 +01:00
Bas Nijholt
16a7408f23
Sort imports according to PEP8 for zwave ( #29658 )
2019-12-09 12:29:12 +01:00
Bas Nijholt
41cd678f00
Sort imports according to PEP8 for deconz ( #29659 )
2019-12-09 12:25:35 +01:00
Bas Nijholt
2da3848f89
Sort imports according to PEP8 for unifi ( #29656 )
2019-12-09 12:19:33 +01:00
Bas Nijholt
3b0f29fe95
sort imports according to PEP8 for lock ( #29663 )
2019-12-09 12:19:11 +01:00
Bas Nijholt
eb47c2b148
Sort imports according to PEP8 for media_player ( #29665 )
2019-12-09 12:17:41 +01:00
Bas Nijholt
01d651c67d
Sort imports according to PEP8 for device_tracker ( #29666 )
2019-12-09 12:14:38 +01:00
Bas Nijholt
27bd6ca1db
Sort imports according to PEP8 for emulated_hue ( #29667 )
2019-12-09 12:12:41 +01:00
Bas Nijholt
05daa817f5
Sort imports according to PEP8 for owntracks ( #29672 )
2019-12-09 12:11:27 +01:00
Bas Nijholt
d62993c5af
Sort imports according to PEP8 for pilight ( #29673 )
2019-12-09 12:10:38 +01:00
Bas Nijholt
04225ba802
Sort imports according to PEP8 for rest ( #29674 )
2019-12-09 12:09:49 +01:00
Bas Nijholt
186799794d
Sort imports according to PEP8 for nest ( #29670 )
2019-12-09 12:08:51 +01:00
Bas Nijholt
ad58e607df
Sort imports according to PEP8 for somfy ( #29675 )
2019-12-09 12:07:10 +01:00
Bas Nijholt
69b113c539
Sort imports according to PEP8 for dyson ( #29678 )
2019-12-09 12:04:39 +01:00
Bas Nijholt
3d10bb3647
Sort imports according to PEP8 for http ( #29679 )
2019-12-09 11:59:38 +01:00
Bas Nijholt
c7d61279bd
Sort imports according to PEP8 for ring ( #29680 )
2019-12-09 11:58:40 +01:00
Bas Nijholt
df85a50f3b
Sort imports according to PEP8 for sensor ( #29683 )
2019-12-09 11:57:49 +01:00
Bas Nijholt
9cf3ff319e
Sort imports according to PEP8 for iaqualink ( #29681 )
2019-12-09 11:56:51 +01:00
Bas Nijholt
b54c8641b4
Sort imports according to PEP8 for vesync ( #29684 )
2019-12-09 11:56:02 +01:00
Bas Nijholt
e4e4f78eb0
Sort imports according to PEP8 for utility_meter ( #29710 )
2019-12-09 11:54:56 +01:00
Bas Nijholt
776d8cfdc9
Sort imports according to PEP8 for specific_devices ( #29687 )
2019-12-09 11:51:36 +01:00
Bas Nijholt
4c5c34919d
Sort imports according to PEP8 for camera ( #29691 )
2019-12-09 11:50:48 +01:00
Bas Nijholt
0b4ca9ecac
Sort imports according to PEP8 for ambiclimate ( #29689 )
2019-12-09 11:49:35 +01:00
Bas Nijholt
bfa58f671a
use isort to sort imports according to PEP8 for broadlink ( #29690 )
2019-12-09 11:48:52 +01:00
Bas Nijholt
9c1236b6de
Sort imports according to PEP8 for ffmpeg ( #29693 )
2019-12-09 11:48:22 +01:00
Bas Nijholt
38657c0055
Sort imports according to PEP8 for counter ( #29692 )
2019-12-09 11:47:35 +01:00
Bas Nijholt
2261bb60e0
Sort imports according to PEP8 for geofency ( #29695 )
2019-12-09 11:46:49 +01:00
Bas Nijholt
2511f5edb4
Sort imports according to PEP8 for ifttt ( #29696 )
2019-12-09 11:46:08 +01:00
Bas Nijholt
fa6b75f2c1
Sort imports according to PEP8 for file ( #29694 )
2019-12-09 11:45:11 +01:00
Bas Nijholt
a78fe25871
Sort imports according to PEP8 for locative ( #29698 )
2019-12-09 11:43:46 +01:00
Bas Nijholt
642655b6d7
Sort imports according to PEP8 for met ( #29699 )
2019-12-09 11:43:00 +01:00
Bas Nijholt
0e71c29e00
Sort imports according to PEP8 for opentherm_gw ( #29671 )
2019-12-09 11:34:06 +01:00
Bas Nijholt
0fbb450838
Sort imports according to PEP8 for jewish_calendar ( #29697 )
...
* use isort to sort imports according to PEP8 for jewish_calendar
* fix order
somehow isort did the wrong thing
2019-12-09 11:30:31 +01:00
springstan
202522fbca
Move imports to top for nsw_fuel_station ( #29538 )
...
* Move imports to top for nsw_fuel_station
* Correct patch path in test_sensor.py
* Fix tests by removing the unused argument mock_nsw_fuel
2019-12-09 11:29:36 +01:00
Bas Nijholt
425a1814d9
Sort imports according to PEP8 for geonetnz_quakes ( #29668 )
2019-12-09 11:28:07 +01:00
Bas Nijholt
790881fa7b
Sort imports according to PEP8 for almond ( #29688 )
2019-12-09 11:27:16 +01:00
Bas Nijholt
2cd55bbb87
Sort imports according to PEP8 for device_automation ( #29707 )
2019-12-09 11:24:49 +01:00
Bas Nijholt
ea39d5b428
Sort imports according to PEP8 for aws ( #29704 )
2019-12-09 11:23:21 +01:00
Bas Nijholt
f9e9a5e4cb
Sort imports according to PEP8 for darksky ( #29706 )
2019-12-09 11:22:04 +01:00