Fix docstring in Idasen Desk (#117280)

This commit is contained in:
Abílio Costa 2024-05-12 01:14:52 +01:00 committed by GitHub
parent 481de8cdc9
commit 15825b9444
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,7 +73,11 @@ class IdasenDeskCoordinator(DataUpdateCoordinator[int | None]): # pylint: disab
await self.desk.disconnect()
async def async_ensure_connection_state(self) -> None:
"""Check if the expected connection state matches the current state and correct it if needed."""
"""Check if the expected connection state matches the current state.
If the expected and current state don't match, calls connect/disconnect
as needed.
"""
if self._expected_connected:
if not self.desk.is_connected:
_LOGGER.debug("Desk disconnected. Reconnecting")