mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix docstring in Idasen Desk (#117280)
This commit is contained in:
parent
481de8cdc9
commit
15825b9444
@ -73,7 +73,11 @@ class IdasenDeskCoordinator(DataUpdateCoordinator[int | None]): # pylint: disab
|
|||||||
await self.desk.disconnect()
|
await self.desk.disconnect()
|
||||||
|
|
||||||
async def async_ensure_connection_state(self) -> None:
|
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 self._expected_connected:
|
||||||
if not self.desk.is_connected:
|
if not self.desk.is_connected:
|
||||||
_LOGGER.debug("Desk disconnected. Reconnecting")
|
_LOGGER.debug("Desk disconnected. Reconnecting")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user