Update Numpy to 1.22.0 (#63559)

* Update Numpy to 1.22.0

* Remove obsolete ignore
This commit is contained in:
Franck Nijhof 2022-01-06 18:51:13 +01:00 committed by GitHub
parent 1ed2497ec9
commit d8e1e1396c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 8 deletions

View file

@ -2,7 +2,7 @@
"domain": "compensation", "domain": "compensation",
"name": "Compensation", "name": "Compensation",
"documentation": "https://www.home-assistant.io/integrations/compensation", "documentation": "https://www.home-assistant.io/integrations/compensation",
"requirements": ["numpy==1.21.4"], "requirements": ["numpy==1.22.0"],
"codeowners": ["@Petro31"], "codeowners": ["@Petro31"],
"iot_class": "calculated" "iot_class": "calculated"
} }

View file

@ -3,7 +3,7 @@
"name": "IQVIA", "name": "IQVIA",
"config_flow": true, "config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/iqvia", "documentation": "https://www.home-assistant.io/integrations/iqvia",
"requirements": ["numpy==1.21.4", "pyiqvia==2021.11.0"], "requirements": ["numpy==1.22.0", "pyiqvia==2021.11.0"],
"codeowners": ["@bachya"], "codeowners": ["@bachya"],
"iot_class": "cloud_polling" "iot_class": "cloud_polling"
} }

View file

@ -161,7 +161,7 @@ def calculate_trend(indices: list[float]) -> str:
"""Calculate the "moving average" of a set of indices.""" """Calculate the "moving average" of a set of indices."""
index_range = np.arange(0, len(indices)) index_range = np.arange(0, len(indices))
index_array = np.array(indices) index_array = np.array(indices)
linear_fit = np.polyfit(index_range, index_array, 1) # type: ignore linear_fit = np.polyfit(index_range, index_array, 1)
slope = round(linear_fit[0], 2) slope = round(linear_fit[0], 2)
if slope > 0: if slope > 0:

View file

@ -2,7 +2,7 @@
"domain": "opencv", "domain": "opencv",
"name": "OpenCV", "name": "OpenCV",
"documentation": "https://www.home-assistant.io/integrations/opencv", "documentation": "https://www.home-assistant.io/integrations/opencv",
"requirements": ["numpy==1.21.4", "opencv-python-headless==4.5.2.54"], "requirements": ["numpy==1.22.0", "opencv-python-headless==4.5.2.54"],
"codeowners": [], "codeowners": [],
"iot_class": "local_push" "iot_class": "local_push"
} }

View file

@ -6,7 +6,7 @@
"tensorflow==2.3.0", "tensorflow==2.3.0",
"tf-models-official==2.3.0", "tf-models-official==2.3.0",
"pycocotools==2.0.1", "pycocotools==2.0.1",
"numpy==1.21.4", "numpy==1.22.0",
"pillow==8.2.0" "pillow==8.2.0"
], ],
"codeowners": [], "codeowners": [],

View file

@ -2,7 +2,7 @@
"domain": "trend", "domain": "trend",
"name": "Trend", "name": "Trend",
"documentation": "https://www.home-assistant.io/integrations/trend", "documentation": "https://www.home-assistant.io/integrations/trend",
"requirements": ["numpy==1.21.4"], "requirements": ["numpy==1.22.0"],
"codeowners": [], "codeowners": [],
"quality_scale": "internal", "quality_scale": "internal",
"iot_class": "local_push" "iot_class": "local_push"

View file

@ -1116,7 +1116,7 @@ numato-gpio==0.10.0
# homeassistant.components.opencv # homeassistant.components.opencv
# homeassistant.components.tensorflow # homeassistant.components.tensorflow
# homeassistant.components.trend # homeassistant.components.trend
numpy==1.21.4 numpy==1.22.0
# homeassistant.components.oasa_telematics # homeassistant.components.oasa_telematics
oasatelematics==0.3 oasatelematics==0.3

View file

@ -692,7 +692,7 @@ numato-gpio==0.10.0
# homeassistant.components.opencv # homeassistant.components.opencv
# homeassistant.components.tensorflow # homeassistant.components.tensorflow
# homeassistant.components.trend # homeassistant.components.trend
numpy==1.21.4 numpy==1.22.0
# homeassistant.components.google # homeassistant.components.google
oauth2client==4.0.0 oauth2client==4.0.0