Skip to content

Commit

Permalink
clearer async_get_session_liveness description
Browse files Browse the repository at this point in the history
  • Loading branch information
zackslash committed Dec 10, 2024
1 parent c34e23e commit 47ce2ea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion custom_components/eo_mini/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,14 @@ async def async_get_session(self) -> list[dict]:
return await self._async_api_wrapper("get", f"{self.base_url}/api/session")

async def async_get_session_liveness(self) -> bool:
"Get the session liveness state"
"""
Determine if a vehicle is connected to the charger.
This call checks the session's liveness, indicating whether a vehicle
is connected to the charger. Note that "connected" refers to the physical
connection between the vehicle and the charger, regardless of whether
charging is actively in progress.
"""
live = await self._async_api_wrapper(
"get", f"{self.base_url}/api/session/alive"
)
Expand Down

0 comments on commit 47ce2ea

Please sign in to comment.