From 474e6dfa848c0902044bdaf7c1f3c0d6a96ebc39 Mon Sep 17 00:00:00 2001 From: jmocoeur <70009404+jmocoeur@users.noreply.github.com> Date: Tue, 14 Jan 2025 23:53:12 +0100 Subject: [PATCH] add Cover.Getstatus as default method for gen2.py wrapper This allows to retrieve roller status when not parameter is provided (except index) --- shellypy/gen2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shellypy/gen2.py b/shellypy/gen2.py index 735fd88..4ff6d55 100644 --- a/shellypy/gen2.py +++ b/shellypy/gen2.py @@ -107,7 +107,7 @@ def relay(self, index: int, timer: float = 0.0, turn: Optional[bool] = None) -> def roller(self, index: int, go: Optional[str] = None, roller_pos: Optional[int] = None, duration: Optional[int] = None) -> dict[str, Any]: - method: str = "" + method: str = "Cover.GetStatus" values: dict[str, Any] = { "id": index }