diff --git a/custom_components/meridian_energy/api.py b/custom_components/meridian_energy/api.py index 3b63137..f8a2cf5 100644 --- a/custom_components/meridian_energy/api.py +++ b/custom_components/meridian_energy/api.py @@ -52,7 +52,7 @@ def login(self): def get_data(self): # Get todays date today = datetime.now().strftime('%d/%m/%Y') - seven_days_ago = (datetime.now() - timedelta(days=7)).strftime('%d/%m/%Y') + seven_days_ago = (datetime.now() - timedelta(days=365)).strftime('%d/%m/%Y') response = self._session.get(self._url_base + "reports/consumption_data/detailed_export?date_from=" + seven_days_ago + "&date_to=" + today + "&all_icps=&download=true") if response.status_code == 200: