From 69ff7a968a3ac86a152ae6c06b3ae97541617162 Mon Sep 17 00:00:00 2001 From: Sean Vig Date: Thu, 16 Sep 2021 00:53:40 -0400 Subject: [PATCH] Bump amcrest version to 1.9.2 (#56281) --- homeassistant/components/amcrest/camera.py | 4 ++-- homeassistant/components/amcrest/manifest.json | 2 +- requirements_all.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/amcrest/camera.py b/homeassistant/components/amcrest/camera.py index 12fec04ce9c..f118bd0da77 100644 --- a/homeassistant/components/amcrest/camera.py +++ b/homeassistant/components/amcrest/camera.py @@ -375,8 +375,8 @@ class AmcrestCam(Camera): if self._brand is None: resp = self._api.vendor_information.strip() _LOGGER.debug("Assigned brand=%s", resp) - if resp.startswith("vendor="): - self._brand = resp.split("=")[-1] + if resp: + self._brand = resp else: self._brand = "unknown" if self._model is None: diff --git a/homeassistant/components/amcrest/manifest.json b/homeassistant/components/amcrest/manifest.json index 725ff96b3ad..6035c62ff0e 100644 --- a/homeassistant/components/amcrest/manifest.json +++ b/homeassistant/components/amcrest/manifest.json @@ -2,7 +2,7 @@ "domain": "amcrest", "name": "Amcrest", "documentation": "https://www.home-assistant.io/integrations/amcrest", - "requirements": ["amcrest==1.8.1"], + "requirements": ["amcrest==1.9.2"], "dependencies": ["ffmpeg"], "codeowners": ["@flacjacket"], "iot_class": "local_polling" diff --git a/requirements_all.txt b/requirements_all.txt index ff33c806aca..1a75da74585 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -276,7 +276,7 @@ ambee==0.3.0 ambiclimate==0.2.1 # homeassistant.components.amcrest -amcrest==1.8.1 +amcrest==1.9.2 # homeassistant.components.androidtv androidtv[async]==0.0.60