From d96c2df6a87f2a253b77a8a7647d722816bf2021 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Tue, 22 Feb 2022 16:25:46 +0100 Subject: [PATCH] Bump pyicloud to 1.0.0 (#67037) --- homeassistant/components/icloud/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- script/pip_check | 2 +- ...{disabled_test_config_flow.py => test_config_flow.py} | 9 +-------- 5 files changed, 5 insertions(+), 12 deletions(-) rename tests/components/icloud/{disabled_test_config_flow.py => test_config_flow.py} (98%) diff --git a/homeassistant/components/icloud/manifest.json b/homeassistant/components/icloud/manifest.json index 4b1d89e59b3..168eafe7047 100644 --- a/homeassistant/components/icloud/manifest.json +++ b/homeassistant/components/icloud/manifest.json @@ -3,7 +3,7 @@ "name": "Apple iCloud", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/icloud", - "requirements": ["pyicloud==0.10.2"], + "requirements": ["pyicloud==1.0.0"], "codeowners": ["@Quentame", "@nzapponi"], "iot_class": "cloud_polling", "loggers": ["keyrings.alt", "pyicloud"] diff --git a/requirements_all.txt b/requirements_all.txt index 2adac10bc6c..935694fe56c 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1583,7 +1583,7 @@ pyhomeworks==0.0.6 pyialarm==1.9.0 # homeassistant.components.icloud -pyicloud==0.10.2 +pyicloud==1.0.0 # homeassistant.components.insteon pyinsteon==1.0.16 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index aa29cdb4f0c..3b54aff60a1 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -997,7 +997,7 @@ pyhomematic==0.1.77 pyialarm==1.9.0 # homeassistant.components.icloud -pyicloud==0.10.2 +pyicloud==1.0.0 # homeassistant.components.insteon pyinsteon==1.0.16 diff --git a/script/pip_check b/script/pip_check index c4ced71605a..fa217e89866 100755 --- a/script/pip_check +++ b/script/pip_check @@ -3,7 +3,7 @@ PIP_CACHE=$1 # Number of existing dependency conflicts # Update if a PR resolve one! -DEPENDENCY_CONFLICTS=8 +DEPENDENCY_CONFLICTS=6 PIP_CHECK=$(pip check --cache-dir=$PIP_CACHE) LINE_COUNT=$(echo "$PIP_CHECK" | wc -l) diff --git a/tests/components/icloud/disabled_test_config_flow.py b/tests/components/icloud/test_config_flow.py similarity index 98% rename from tests/components/icloud/disabled_test_config_flow.py rename to tests/components/icloud/test_config_flow.py index 1f7e411003a..59c5ebf24a9 100644 --- a/tests/components/icloud/disabled_test_config_flow.py +++ b/tests/components/icloud/test_config_flow.py @@ -1,11 +1,4 @@ -"""Tests for the iCloud config flow. - -This integration is temporary disabled, as the library is incompatible -with the Python versions we currently support. - -This file has been renamed (instead of skipped), simply because its easier -to prevent library imports from happening that way. -""" +"""Tests for the iCloud config flow.""" from unittest.mock import MagicMock, Mock, patch from pyicloud.exceptions import PyiCloudFailedLoginException