From 207ee39d0057b35aa3ccb50028f8c300f9ff10c8 Mon Sep 17 00:00:00 2001 From: muppet3000 Date: Fri, 14 May 2021 08:50:41 +0100 Subject: [PATCH] Bump growattServer library (#50588) --- homeassistant/components/growatt_server/manifest.json | 2 +- homeassistant/components/growatt_server/sensor.py | 4 +--- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/growatt_server/manifest.json b/homeassistant/components/growatt_server/manifest.json index 94fc293b8d7..8b4a82d7b99 100644 --- a/homeassistant/components/growatt_server/manifest.json +++ b/homeassistant/components/growatt_server/manifest.json @@ -3,7 +3,7 @@ "name": "Growatt", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/growatt_server/", - "requirements": ["growattServer==1.0.0"], + "requirements": ["growattServer==1.0.1"], "codeowners": ["@indykoning", "@muppet3000"], "iot_class": "cloud_polling" } diff --git a/homeassistant/components/growatt_server/sensor.py b/homeassistant/components/growatt_server/sensor.py index 0ccdc9425f6..881f0f46480 100644 --- a/homeassistant/components/growatt_server/sensor.py +++ b/homeassistant/components/growatt_server/sensor.py @@ -738,9 +738,7 @@ class GrowattData: self.device_id, self.plant_id ) - mix_detail = self.api.mix_detail( - self.device_id, self.plant_id, date=datetime.datetime.now() - ) + mix_detail = self.api.mix_detail(self.device_id, self.plant_id) # Get the chart data and work out the time of the last entry, use this as the last time data was published to the Growatt Server mix_chart_entries = mix_detail["chartData"] sorted_keys = sorted(mix_chart_entries) diff --git a/requirements_all.txt b/requirements_all.txt index da8efdf77d3..30c01cf80c1 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -708,7 +708,7 @@ greeneye_monitor==2.1 greenwavereality==0.5.1 # homeassistant.components.growatt_server -growattServer==1.0.0 +growattServer==1.0.1 # homeassistant.components.gstreamer gstreamer-player==1.1.2 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 33dbadc4856..3de8763efff 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -387,7 +387,7 @@ googlemaps==2.5.1 greeclimate==0.11.4 # homeassistant.components.growatt_server -growattServer==1.0.0 +growattServer==1.0.1 # homeassistant.components.profiler guppy3==3.1.0