From 47ce2eafa1b9a31ca862274de00664436f678a91 Mon Sep 17 00:00:00 2001 From: zackslash Date: Tue, 10 Dec 2024 11:00:18 +0000 Subject: [PATCH] clearer async_get_session_liveness description --- custom_components/eo_mini/api.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/custom_components/eo_mini/api.py b/custom_components/eo_mini/api.py index 36d7a6c..54e00f8 100644 --- a/custom_components/eo_mini/api.py +++ b/custom_components/eo_mini/api.py @@ -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" )