Commit graph

26 commits

Author SHA1 Message Date
Paulus Schoutsen
72c4c359a4
iCloud: remove deprecated YAML import ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-31 13:25:32 -07:00
epenet
9bcdc2b847
Deprecate iCloud YAML configuration ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-11 08:22:23 +01:00
epenet
1650332188
Add init type hints [h-j] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 16:31:48 +01:00
epenet
fb272f58fb
Ensure service calls are typed [h-i] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-28 14:19:14 +01:00
Marc Mueller
c979e89b70
Use assignment expressions 14 () 2021-10-21 08:26:01 +02:00
Tomasz
e9f6bc7364
Add missing return type to async_unload_entry and async_setup_entry () 2021-10-06 10:48:11 +02:00
J. Nick Koston
a1fdf84dba
Reduce config entry setup/unload boilerplate G-J () 2021-04-27 16:09:59 +02:00
jan iversen
9685cefba4
Integrations h* - i*: Rename HomeAssistantType to HomeAssistant. () 2021-04-23 10:11:58 +02:00
Jörg Thalheim
51915c86cb
Fix iCloud matching accounts ()
`name` is no longer defined but `username`.
Fixes 
2020-10-25 01:07:17 +02:00
Philip Allgaier
625bbe6238
Cleanup unused loggers (components A-M) () 2020-10-12 16:59:05 +02:00
Raman Gupta
025bdd74a1
Allow users to update their iCloud password when auth fails ()
* Allow users to update their iCloud password when auth fails after successful setup

* remove trailing comma

* use new reauth source instead of custom one so frontend can do the right thing

* add quentames text suggestion with a slight tweak

* fix test

* use common string for successful reauth and remove creation and dismissal of persistent notification

* Update homeassistant/components/icloud/account.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-10-10 02:02:28 -04:00
springstan
46bbe816f6
Remove None from dict.get(key, None) () 2020-04-07 21:06:05 +02:00
Quentame
01dc81d8fb
Fetch iCloud family devices only when wanted ()
* Fetch iCloud family devices only when wanted

* Review: form data_schema as init schema
2020-03-11 20:43:37 +01:00
Quentame
85ba4692a9
Get pending iCloud devices when available + request again when needs an update ()
* 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
Quentame
3743aaf70f
Add async_unload_entry to iCloud () 2020-02-17 22:23:24 +01:00
Quentame
ec4ccb10ec
Bump iCloud to 0.9.2 + fix setup log ()
- 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
Quentame
c481a48e3a Separate iCloud class ()
* Separate iCloud class

* Update .coveragerc

* Fix pipe
2020-01-25 13:24:50 -05:00
Quentame
bc600995c1 Do not stop fetching iCloud data after service error () 2020-01-22 01:39:12 +01:00
Quentame
8c22858ae3
Use config_entry.unique_id in iCloud ()
* 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
Quentame
7c155731fc
Fix can't add multiple iCloud accounts (remove account name) ()
* Fix can't add multiple iCloud accounts (remove account name)

* Update tests with flow.async_init()
2020-01-19 14:19:46 +01:00
Quentame
04b7d9e848 Fix iCloud when no family members (issue ) () 2020-01-16 09:27:43 -08:00
Quentame
519c1fa2da Update iCloud sensors when service finish its update ()
* Update iCloud sensors when needed

* Add sensor should_poll
2020-01-11 23:12:55 +01:00
Ville Skyttä
fa4fa30461 Various string cleanups ()
* Remove some unnecessary string concatenations

* Replace some simple str.formats with f-strings

* Replace some string concatenations with f-strings
2020-01-03 14:47:06 +01:00
Quentame
820780996a Add battery sensor to iCloud ()
* Add battery sensor to iCloud

* Update .coveragerc

* Review: @balloob & @MartinHjelmare

* Review: use f string
2019-12-14 23:06:00 +01:00
Quentame
c804f8f961 Add config flow to iCloud ()
* 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
Paulus Schoutsen
f5076188ef
Consolidate all platforms that have no tests ()
* Consolidate

* Fix tests

* Update imports

* Fix import

* Use importlib because integration and package share name

* Fix more tests

* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00