From 80c35b4378793873579b0e91feaeb58e99b2acc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Senart?= <> Date: Sun, 12 Jan 2025 19:10:50 +0100 Subject: [PATCH] [#27] In a Github workflow, run unit tests inside a HA DevContainer --- gazpar2haws/gazpar.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gazpar2haws/gazpar.py b/gazpar2haws/gazpar.py index bea75ff..046e40c 100644 --- a/gazpar2haws/gazpar.py +++ b/gazpar2haws/gazpar.py @@ -137,10 +137,14 @@ def _create_data_source(self) -> pygazpar.datasource.IDataSource: if self._data_source == "excel": return pygazpar.ExcelWebDataSource( - username=self._username, password=self._password, tmpDirectory=self._tmp_dir + username=self._username, + password=self._password, + tmpDirectory=self._tmp_dir, ) - return pygazpar.JsonWebDataSource(username=self._username, password=self._password) + return pygazpar.JsonWebDataSource( + username=self._username, password=self._password + ) # ---------------------------------- # Find last date, days and value of the entity.