Skip to content

Commit

Permalink
Merge pull request #1 from walderston/walderston-patch-1
Browse files Browse the repository at this point in the history
Update public_api.py to remove datetime
  • Loading branch information
walderston authored Nov 18, 2024
2 parents aa84e2f + 10c7546 commit 7c6f4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/ecoflow_cloud/api/public_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def login(self):
_LOGGER.info(f"Requesting IoT MQTT credentials")
response = await self.call_api("/certification")
self._accept_mqqt_certification(response)
self.mqtt_info.client_id = f"Hassio-{self.mqtt_info.username}-{self.group.replace(' ', '-')}-{datetime.strftime(dt.now(), '%Y%m%d')}"
self.mqtt_info.client_id = f"Hassio-{self.mqtt_info.username}-{self.group.replace(' ', '-')}"

async def fetch_all_available_devices(self) -> list[EcoflowDeviceInfo]:
_LOGGER.info(f"Requesting all devices")
Expand Down

0 comments on commit 7c6f4a7

Please sign in to comment.