diff --git a/aioshelly/__init__.py b/aioshelly/__init__.py index 278605e7..163d7a0c 100644 --- a/aioshelly/__init__.py +++ b/aioshelly/__init__.py @@ -175,6 +175,9 @@ def _update_d(self, data): def _update_s(self, data): self.s = {info[1]: info[2] for info in data["G"]} + async def update_status(self): + self._status = await self.http_request("get", "status") + async def coap_request(self, path): request = aiocoap.Message( code=aiocoap.GET, uri=f"coap://{self.options.ip}/cit/{path}"