Commit Graph
100 Commits
Author SHA1 Message Date
QuentameandPaulus Schoutsen 67a721d39b Fix iCloud init while pending (#32750)
* Fix iCloud init while pending

Continue if device is pending while setup
Create devices and fetch 15s if pending, otherwise determine interval to fetch.

* Add retried_fetch guard
2020-03-17 10:32:00 -07:00
QuentameandGitHub 01dc81d8fb Fetch iCloud family devices only when wanted (#32644)
* Fetch iCloud family devices only when wanted

* Review: form data_schema as init schema
2020-03-11 20:43:37 +01:00
QuentameandPaulus Schoutsen 6062854666 Get pending iCloud devices when available + request again when needs an update (#32400)
* Fetch iCloud devices again if the status is pending

* Remove "No iCloud device found" double check

* fix default api_devices value

* Remove useless unitialisation declarations
2020-03-10 11:49:11 -07:00
QuentameandGitHub 2e802c88f8 Add devices check to iCloud config flow (#31950)
* Add devices check to iCloud config flow

* Some test rename

* Bump pyicloud to catch KeyError
2020-03-10 11:42:04 +01:00
QuentameandGitHub 8a878bbe72 Bump pyicloud to 0.9.3 (#32582) 2020-03-08 23:32:14 +01:00
QuentameandGitHub 85ba4692a9 Get pending iCloud devices when available + request again when needs an update (#32400)
* Fetch iCloud devices again if the status is pending

* Remove "No iCloud device found" double check

* fix default api_devices value

* Remove useless unitialisation declarations
2020-03-05 08:50:39 +01:00
15a5cebd5f Add icons to Coronavirus (#32480)
* Add icons to Coronavirus

* Update homeassistant/components/coronavirus/sensor.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-03-05 00:02:22 +01:00
QuentameandGitHub 3743aaf70f Add async_unload_entry to iCloud (#31917) 2020-02-17 22:23:24 +01:00
QuentameandGitHub e0a035ce35 Implement PlatformNotReady to Linky + fix TypeError (#31768) 2020-02-12 16:12:35 -08:00
QuentameandGitHub 9e41ee49cb Fix Météo-France I/O while testing (#31695)
* Fix Météo-France I/O while testing

* Review
2020-02-10 17:00:22 +01:00
QuentameandPaulus Schoutsen bf1b78f621 Fix iCloud determine_interval: add default interval to max_interval (#31533) 2020-02-06 11:08:14 -08:00
QuentameandGitHub 9e4904cb21 Fix iCloud determine_interval: add default interval to max_interval (#31533) 2020-02-06 08:53:42 -08:00
QuentameandFranck Nijhof 2d393b8f8b Fix iCloud device battery level can be None (#31468) 2020-02-05 16:59:19 +01:00
QuentameandGitHub 2c439af165 Fix iCloud device battery level can be None (#31468) 2020-02-05 00:26:47 +01:00
QuentameandGitHub 201ea2557e Add config flow to Meteo-France (#29927)
* Add config flow to Meteo-France

* Review 1

* Use config_entry.unique_id

* Fix config_flow _show_setup_form + init

* Remove empty *_setup_platform()

* Avoid HomeAssistantError: Entity id already exists: sensor.[city_name]_[sensor_type]. Platform meteo_france does not generate unique IDs

- when multiple district in one city

* Review + abort when API error

* Fix I/O

* Remove monitored_conditions

* Add async_unload_entry

* Review 3

* Fix pipe

* alert_watcher is already None

* Review 4

* Better fix for "Entity id already exists"

* Whoops, fix tests

* Fix string
2020-02-04 22:37:59 +01:00
QuentameandGitHub ec4ccb10ec Bump iCloud to 0.9.2 + fix setup log (#31273)
- pyicloud to 0.9.2
- fix log `ERROR (MainThread) [homeassistant.config_entries] icloud.async_setup_entry did not return boolean`
2020-01-29 15:16:54 +01:00
QuentameandPaulus Schoutsen a73a1a4489 Use config_entry.unique_id in Linky (#31051)
* Use config_entry.unique_id in Linky

* Reviews

* _show_setup_form not async
2020-01-27 08:57:36 -08:00
QuentameandCharles Garwood c481a48e3a Separate iCloud class (#31022)
* Separate iCloud class

* Update .coveragerc

* Fix pipe
2020-01-25 13:24:50 -05:00
QuentameandMartin Hjelmare bc600995c1 Do not stop fetching iCloud data after service error (#31069) 2020-01-22 01:39:12 +01:00
QuentameandGitHub 8c22858ae3 Use config_entry.unique_id in iCloud (#30984)
* Use unique_id in iCloud

* Remove missed self._configuration_exists()

* Avoid breaking change

* Almost fix tests

* Add missing test

* Fix tests
2020-01-20 18:59:29 +01:00
QuentameandGitHub 7c155731fc Fix can't add multiple iCloud accounts (remove account name) (#30898)
* Fix can't add multiple iCloud accounts (remove account name)

* Update tests with flow.async_init()
2020-01-19 14:19:46 +01:00
QuentameandPaulus Schoutsen 8fdf68c8d1 Fix iCloud when no family members (issue #30829) (#30836) 2020-01-16 11:33:46 -08:00
QuentameandPaulus Schoutsen 04b7d9e848 Fix iCloud when no family members (issue #30829) (#30836) 2020-01-16 09:27:43 -08:00
QuentameandMartin Hjelmare 123bef4f1e Fix SynologyDSM sensor if network_sensors is None (#30718) 2020-01-13 04:42:37 +01:00
QuentameandMartin Hjelmare 519c1fa2da Update iCloud sensors when service finish its update (#30680)
* Update iCloud sensors when needed

* Add sensor should_poll
2020-01-11 23:12:55 +01:00
QuentameandAndrew Sayre 1587603c4c Bump synologydsm to 0.3.0 (#30529) 2020-01-06 17:38:42 -06:00
QuentameandFranck Nijhof 2113d65c06 Fix AdGuard Home safe search sensor name (#30171)
* Fix AdGuard Home safe search sensor name

* Fix typo
2019-12-24 14:14:58 +01:00
QuentameandAaron Bach f72ba0c716 Add icons to Freebox sensors (#30132) 2019-12-23 09:37:41 -07:00
QuentameandAaron Bach e3a3964911 Add icon to Plex sensor (#30172) 2019-12-23 09:25:57 -07:00
QuentameandMartin Hjelmare 820780996a Add battery sensor to iCloud (#29818)
* Add battery sensor to iCloud

* Update .coveragerc

* Review: @balloob & @MartinHjelmare

* Review: use f string
2019-12-14 23:06:00 +01:00
QuentameandMartin Hjelmare 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
QuentameandPaulus Schoutsen 9a388e2dd2 Move dominos imports at top-level (#29090) 2019-11-26 10:10:20 -08:00
QuentameandPaulus Schoutsen c84590b18c Move free_mobile imports at top-level (#29092) 2019-11-26 10:10:05 -08:00
QuentameandPaulus Schoutsen 274508f8fd Move fortigate imports at top-level (#29093) 2019-11-26 10:09:52 -08:00
QuentameandPaulus Schoutsen 915d23158d Move foobot imports at top-level (#29094) 2019-11-26 10:09:32 -08:00
QuentameandPaulus Schoutsen 4107fd9a25 Move folder_watcher imports at top-level (#29095) 2019-11-26 10:09:20 -08:00
QuentameandPaulus Schoutsen 7a04f0c0df Move flunearyou imports at top-level (#29096) 2019-11-26 10:09:10 -08:00
QuentameandPaulus Schoutsen a7c4abba98 Move flexit imports at top-level (#29097) 2019-11-26 10:08:53 -08:00
QuentameandPaulus Schoutsen 44e708f72b Move ee_brightbox imports at top-level (#29054)
* Move ee_brightbox imports at top-level

* Fix tests

* Fix : Commented out code
2019-11-26 08:59:55 -08:00
QuentameandPaulus Schoutsen 78d5184186 Move icloud imports at top-level (#29089) 2019-11-26 08:59:42 -08:00
QuentameandPaulus Schoutsen 8a413b152d Move esphome imports at top-level (#29064) 2019-11-25 18:00:58 -08:00
QuentameandPaulus Schoutsen 112a3f5e9f Move hangouts imports at top-level (#29055) 2019-11-25 15:44:11 -08:00
QuentameandPaulus Schoutsen 844eb6b8ef Move dlna_dmr imports at top-level (#29082) 2019-11-25 15:37:19 -08:00
QuentameandPaulus Schoutsen 5015993f30 Move upnp imports at top-level (#29083) 2019-11-25 15:37:03 -08:00
QuentameandPaulus Schoutsen 29e2201446 Move velux imports at top-level (#29085) 2019-11-25 15:36:37 -08:00
QuentameandPaulus Schoutsen 12c396fb19 Move epsonworkforce imports at top-level (#29086) 2019-11-25 15:36:04 -08:00
QuentameandFabian Affolter f971e16749 Move eddystone_temperature imports at top-level (#29052)
* Move eddystone_temperature imports at top-level

* Fix pylint ?
2019-11-25 23:46:12 +01:00
QuentameandAaron Bach c4108fec4f Move yi imports at top-level (#29001)
* Move yi imports at top-level

* Review 1 : removing useless disable=import-error

* Review 2 : removing useless disable=import-error
2019-11-25 15:32:35 -07:00
QuentameandPascal Vizeli e40dda3ce3 Move econet imports at top-level (#29050) 2019-11-25 16:06:37 +01:00
QuentameandPascal Vizeli 335473cb71 Move hdmi_cec imports at top-level (#29056) 2019-11-25 14:43:17 +01:00
QuentameandPascal Vizeli 5edc45e9af Move fibaro imports at top-level (#28995) 2019-11-25 14:12:01 +01:00
QuentameandPascal Vizeli 71bafba9ec Move ecoal_boiler imports at top-level (#29049) 2019-11-25 14:08:52 +01:00
QuentameandPascal Vizeli cb5d00a07b Move ebox imports at top-level (#29048) 2019-11-25 14:08:28 +01:00
QuentameandPascal Vizeli 752a4d7221 Move dyson imports at top-level (#29047) 2019-11-25 14:06:39 +01:00
QuentameandPascal Vizeli 193769c791 Move vizio imports at top-level (#29046) 2019-11-25 14:05:46 +01:00
QuentameandPascal Vizeli 3122182ab2 Move edimax imports at top-level (#29053) 2019-11-25 14:05:07 +01:00
Quentameandcgtobi 5822deda1d Move philips_js imports at top-level (#29003) 2019-11-25 09:41:37 +01:00
QuentameandMartin Hjelmare eb23846cfe Move imports in owntracks component (#27780)
* Move imports in owntracks component

* Fix nacl import

* Fix nacl import 2

* Fix nacl import 3

* Add helper.supports_encryption tests

* Fix tests helper 1

* Fix tests 2

* Add not_supports_encryption + get_cipher_error tests

* Code cov

* Fix nacl_not_imported test
2019-11-18 16:47:30 +01:00
QuentameandMartin Hjelmare decab3e15b Add config flow tests for OwnTracks (#28644)
* Add config flow tests for OwnTracks

* Fix pylint

* Woops, uncomment test

* Woops again, logs removed

* Review from @MartinHjelmare + fix pylint
2019-11-11 21:30:00 +01:00
QuentameandMartin Hjelmare 136f1f7fe9 Move imports in samsungtv component (#27775)
* Move imports in samsungtv component

* Fix tests

* Fix review 1

* Fix review 2

* wakeonlan is a module
2019-11-05 15:04:19 +01:00
QuentameandFranck Nijhof ac467d0b3f Not slugify cert_expiry name (#28055) 2019-10-21 14:30:49 +02:00
QuentameandPascal Vizeli 5ce437dc30 Fixing config_entries.async_forward_entry_unload calls (step 1) (#27857) 2019-10-20 12:15:46 +02:00
Quentameandcgtobi 8c0deeb176 Move imports in luftdaten component (#27929) 2019-10-19 18:22:32 +02:00
QuentameandPaulus Schoutsen 5cb145f588 Move imports in openweathermap component (#27779) 2019-10-17 22:12:32 -07:00
QuentameandPaulus Schoutsen dcdcfdd376 Unload linky config entry (#27831) 2019-10-17 17:22:16 -07:00
QuentameandPaulus Schoutsen bd0403c65e Move imports in telegram_bot component (#27785) 2019-10-17 17:19:34 -07:00
QuentameandPaulus Schoutsen fdf839774e Move imports in fritz + fritzbox_netmonitor component (#27823)
* Move imports in fritz + fritzbox_netmonitor component

* Fix PyLint 1
2019-10-17 17:17:24 -07:00
QuentameandPaulus Schoutsen 22b904f5e0 Move imports in flux_led component (#27822) 2019-10-17 17:15:18 -07:00
QuentameandPaulus Schoutsen 0965e358ea Move imports in fitbit component (#27820) 2019-10-17 17:14:53 -07:00
QuentameandPaulus Schoutsen fe036ed094 Move imports in flic component (#27821) 2019-10-17 17:13:20 -07:00
QuentameandPaulus Schoutsen 61edd33da7 Move imports in google component (#27826) 2019-10-17 17:11:51 -07:00
QuentameandPaulus Schoutsen 6998687742 Move imports in gitlab_ci component (#27827) 2019-10-17 17:11:20 -07:00
QuentameandMartin Hjelmare 7637ceb880 Move imports in html5 component (#27473)
* Move imports in html5 component

* Fix tests 1

* Fix tests 2
2019-10-17 21:17:23 +02:00
QuentameandPascal Vizeli 12a8e7520e Move imports in netgear component (#27776) 2019-10-17 15:05:14 +02:00
QuentameandPascal Vizeli ab598da4ba Move imports in nest component (#27778) 2019-10-17 15:03:50 +02:00
QuentameandPascal Vizeli 8350e1246a Move imports in netgear_lte component (#27777) 2019-10-17 15:03:05 +02:00
QuentameandPascal Vizeli 9dc0c05ee0 Move imports in imap + imap_email_content component (#27793) 2019-10-17 15:01:50 +02:00
QuentameandPascal Vizeli dc72aa48da Move imports in liveboxplaytv component (#27790) 2019-10-17 15:00:32 +02:00
QuentameandPascal Vizeli 9f71384524 Move imports in linux_battery component (#27789) 2019-10-17 14:59:36 +02:00
QuentameandPascal Vizeli 35e0acf0a5 Move imports in keyboard component (#27791) 2019-10-17 14:58:56 +02:00
QuentameandPascal Vizeli e54f5102aa Move imports in ifttt component (#27792) 2019-10-17 14:58:23 +02:00
QuentameandMartin Hjelmare 5b1f44ba19 Move imports in yeelight + yeelightsunflower component (#27388)
* Move imports in yeelight + yeelightsunflower component

* Fix pylint

* Fix pylint (again)
2019-10-15 13:37:40 +02:00
QuentameandPaulus Schoutsen 72b711fde6 Move imports in w800rf32 component (#27451) 2019-10-12 13:03:02 -07:00
QuentameandPaulus Schoutsen 701bb666c4 Move imports in watson_iot component (#27448) 2019-10-12 13:01:34 -07:00
QuentameandPaulus Schoutsen bac337889f Move imports in vera component (#27477) 2019-10-12 12:55:40 -07:00
QuentameandPaulus Schoutsen eaf855286b Move imports in verisure component (#27476) 2019-10-12 12:55:33 -07:00
QuentameandPaulus Schoutsen c5b12d6006 Move imports in venstar component (#27478) 2019-10-12 12:54:55 -07:00
QuentameandPaulus Schoutsen 0a2ec30ce3 Move imports in vasttrafik component (#27480) 2019-10-12 12:54:41 -07:00
QuentameandPaulus Schoutsen 54d63c63c3 Move imports in uscis component (#27481) 2019-10-12 12:54:16 -07:00
QuentameandPaulus Schoutsen ee8b72fb71 Move imports in http component (#27474) 2019-10-12 12:27:27 -07:00
QuentameandFranck Nijhof 3d05228ec1 Move imports in vizio component (#27452) 2019-10-12 14:09:39 +02:00
QuentameandFabian Affolter af4bcf8de6 Move imports in waqi component (#27450) 2019-10-12 07:44:22 +02:00
QuentameandFabian Affolter f236e84753 Move imports in updater component (#27485) 2019-10-12 07:19:53 +02:00
QuentameandFabian Affolter 8bd847ed39 Move imports in waterfurnace component (#27449) 2019-10-11 18:30:27 +02:00
QuentameandPaulus Schoutsen 7e91677362 Move imports in apple_tv component (#27356)
* Move imports in apple_tv component

* Fix pylint
2019-10-10 11:39:09 -07:00
QuentameandPaulus Schoutsen fc7a20d180 Move imports in yr component (#27382) 2019-10-10 09:57:00 -07:00
QuentameandPaulus Schoutsen 6364da1150 Move imports in zigbee component (#27383) 2019-10-10 09:56:07 -07:00
QuentameandPaulus Schoutsen ec08c251ea Move imports in zestimate component (#27386) 2019-10-10 09:54:20 -07:00
QuentameandPaulus Schoutsen f5560e2b18 Move imports in zengge component (#27387) 2019-10-10 09:53:52 -07:00
QuentameandPaulus Schoutsen 19c8710698 Move imports in yamaha + yamaha_musiccast component (#27389) 2019-10-10 09:53:27 -07:00