Skip to content

Commit

Permalink
making pylint even happier
Browse files Browse the repository at this point in the history
(cherry picked from commit 0b6ad88)
  • Loading branch information
gjdv committed Feb 13, 2023
1 parent df4a149 commit 82c7a4b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions daikinapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,12 @@ def _set_datetime(self, date_time=None):
if date_time is None:
date_time = datetime.datetime.now()
date_time = date_time.astimezone(tz=datetime.timezone.utc)
data = {'lpw': '',
'date': f'{date_time.year:d}/{date_time.month:d}/{date_time.day:d}', # avoid zero-padding
'zone': 'GMT',
'time': f'{date_time.hour:d}:{date_time.minute:d}:{date_time.second:d}', # avoid zero-padding
}
data = {
'lpw': '',
'date': f'{date_time.year:d}/{date_time.month:d}/{date_time.day:d}',
'zone': 'GMT',
'time': f'{date_time.hour:d}:{date_time.minute:d}:{date_time.second:d}',
}
data = urllib.parse.urlencode(data)
return self._set("/common/notify_date_time", data)

Expand Down

0 comments on commit 82c7a4b

Please sign in to comment.