Skip to content

Commit

Permalink
Fix translation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pippyn committed Sep 27, 2021
1 parent a6b9dc7 commit 444d6fe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion custom_components.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sensor.afvalbeheer": {
"version": "4.7.27",
"version": "4.7.28",
"local_location": "/custom_components/afvalbeheer/__init__.py",
"remote_location": "https://raw.githubusercontent.com/pippyn/Home-Assistant-Sensor-Afvalbeheer/master/custom_components/afvalbeheer/__init__.py",
"visit_repo": "https://github.com/pippyn/Home-Assistant-Sensor-Afvalbeheer",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/afvalbeheer/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '4.7.27'
__version__ = '4.7.28'
2 changes: 1 addition & 1 deletion custom_components/afvalbeheer/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"rsa",
"pycryptodome"
],
"version": "4.7.27"
"version": "4.7.28"
}
7 changes: 4 additions & 3 deletions custom_components/afvalbeheer/sensor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Sensor component for waste pickup dates from dutch and belgium waste collectors
Original Author: Pippijn Stortelder
Current Version: 4.7.27 20210927 - Pippijn Stortelder
Current Version: 4.7.28 20210927 - Pippijn Stortelder
20210112 - Updated date format for RD4
20210114 - Fix error made in commit 9d720ec
20210120 - Enabled textile for RecycleApp
Expand Down Expand Up @@ -1386,10 +1386,11 @@ def __set_state(self, collection):
elif date_diff > 1:
if self.day_of_week:
if self.day_of_week_only:
self._state = collection.date.strftime("%A")
self.date_format = "%A"
self._state = collection.date.strftime(self.date_format)
else:
if "%A" not in self.date_format:
self.date_format = '%A, ' + self.date_format
self.date_format = "%A, " + self.date_format
self._state = collection.date.strftime(self.date_format)
else:
self._state = collection.date.strftime(self.date_format)
Expand Down

0 comments on commit 444d6fe

Please sign in to comment.