Bump numpy to v1.22.3 (#71393)

* Bump numpy to v1.22.3

* Fix mypy
pull/71407/head
epenet 2022-05-06 12:07:02 +02:00 committed by GitHub
parent 118bae6cb4
commit 225d41f82a
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",
"name": "Compensation",
"documentation": "https://www.home-assistant.io/integrations/compensation",
"requirements": ["numpy==1.21.6"],
"requirements": ["numpy==1.22.3"],
"codeowners": ["@Petro31"],
"iot_class": "calculated"
}

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@
"tensorflow==2.5.0",
"tf-models-official==2.5.0",
"pycocotools==2.0.1",
"numpy==1.21.6",
"numpy==1.22.3",
"pillow==9.1.0"
],
"codeowners": [],

View File

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

View File

@ -1114,7 +1114,7 @@ numato-gpio==0.10.0
# homeassistant.components.opencv
# homeassistant.components.tensorflow
# homeassistant.components.trend
numpy==1.21.6
numpy==1.22.3
# homeassistant.components.oasa_telematics
oasatelematics==0.3

View File

@ -758,7 +758,7 @@ numato-gpio==0.10.0
# homeassistant.components.opencv
# homeassistant.components.tensorflow
# homeassistant.components.trend
numpy==1.21.6
numpy==1.22.3
# homeassistant.components.google
oauth2client==4.1.3