Skip to content

Commit

Permalink
🔧 fix get Petkit PURA MAX records (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyibo authored Oct 18, 2022
1 parent 403bf76 commit ec0ef5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/petkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,8 @@ async def update_device_detail(self):
pms = {
'deviceId': self.device_id,
}
if self.device_type == 't4':
pms['date'] = datetime.datetime.today().strftime('%Y%m%d')
rsp = None
try:
rsp = await self.account.request(api, pms)
Expand Down

0 comments on commit ec0ef5e

Please sign in to comment.