Skip to content

Commit

Permalink
Fixed invalid condition
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrMachowski committed Feb 26, 2020
1 parent bbc054c commit d15263f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/rozkladzik/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def device_state_attributes(self):
def update(self):
now = datetime.datetime.now()
r_time = now.hour * 60 + now.minute
if self._should_update(now):
if self._should_update(r_time):
url_template = 'https://www.rozkladzik.pl/{}/timetable.txt?c=tsa&t={}&day={}&time={}'
if self._group_mode:
url_template = 'https://www.rozkladzik.pl/{}/timetable.txt?c=bsa&b={}&day={}&time={}'
Expand Down

0 comments on commit d15263f

Please sign in to comment.