diff --git a/CHANGELOG.md b/CHANGELOG.md index dd7420b..ce67ce6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.1] - 2024-09-11 +- Fix Blocking calls detected + ## [1.1.0] - 2024-05-19 - Fix incorrect values in Energy Dashboard diff --git a/custom_components/gazdebordeaux/gazdebordeaux.py b/custom_components/gazdebordeaux/gazdebordeaux.py index 5aa5861..568bfa8 100644 --- a/custom_components/gazdebordeaux/gazdebordeaux.py +++ b/custom_components/gazdebordeaux/gazdebordeaux.py @@ -12,6 +12,7 @@ INPUT_DATE_FORMAT = "%Y-%m-%d" +paris_tz = pytz.timezone('Europe/Paris') Logger = logging.getLogger(__name__) # ------------------------------------------------------------------------------------------------------------ @@ -56,7 +57,6 @@ async def async_get_total_usage(self): monthly_data = await self.async_get_data(None, None, "year") # Logger.debug("Data retreived %s", monthly_data) - paris_tz = pytz.timezone('Europe/Paris') d = monthly_data["total"] return TotalUsageRead( amountOfEnergy = d["amountOfEnergy"], @@ -70,7 +70,6 @@ async def async_get_daily_usage(self, start: datetime|None, end: datetime|None) usageReads: List[DailyUsageRead] = [] - paris_tz = pytz.timezone('Europe/Paris') for d in daily_data: if d == "total": continue diff --git a/custom_components/gazdebordeaux/manifest.json b/custom_components/gazdebordeaux/manifest.json index b1dcdc6..bb2e7e1 100644 --- a/custom_components/gazdebordeaux/manifest.json +++ b/custom_components/gazdebordeaux/manifest.json @@ -11,5 +11,5 @@ "issue_tracker": "https://github.com/chriscamicas/gazdebordeaux-ha/issues", "requirements": [ ], - "version": "1.1.0" + "version": "1.1.1" }