diff --git a/goxlr/socket.py b/goxlr/socket.py index d1564ec..402b404 100644 --- a/goxlr/socket.py +++ b/goxlr/socket.py @@ -118,7 +118,7 @@ async def receive(self, id: IDType | int = None): continue self.response_queue.append(response) - async def receive_patch(self) -> Patch | List[Patch]: + async def receive_patch(self) -> List[Patch]: """ Helper method to wait for a patch message from the daemon. @@ -127,9 +127,6 @@ async def receive_patch(self) -> Patch | List[Patch]: response = await self.receive(IDType.Patch) patches = response.get("data").get("Patch") - if len(patches) == 1: - return Patch(patches[0]) - return [Patch(p) for p in patches] async def open(self): @@ -202,7 +199,7 @@ async def update(self): return self.status - async def receive_patch(self, update: bool = True) -> Patch | List[Patch]: + async def receive_patch(self, update: bool = True) -> List[Patch]: """ Helper method to wait for a patch message from the daemon.