From 2565074c9c1c797dd969f41b7807e668a7efc70a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20St=C3=A5hl?= Date: Sat, 3 Oct 2020 18:57:26 +0200 Subject: [PATCH] Add missing await --- custom_components/localtuya/pytuya/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/localtuya/pytuya/__init__.py b/custom_components/localtuya/pytuya/__init__.py index 10b071f..fc169c0 100644 --- a/custom_components/localtuya/pytuya/__init__.py +++ b/custom_components/localtuya/pytuya/__init__.py @@ -365,7 +365,7 @@ class TuyaProtocol(asyncio.Protocol): dev_type, self.dev_type, ) - return self.exchange(command, dps) + return await self.exchange(command, dps) return payload async def status(self):