Await async stuff

This commit is contained in:
2022-09-02 19:34:32 +00:00
parent ee654d32c4
commit 46b1f05e80
2 changed files with 21 additions and 21 deletions

View File

@@ -40,8 +40,8 @@ class BrowserModLight(BrowserModEntity, LightEntity):
def brightness(self):
return self._data.get("screen_brightness", 1)
def turn_on(self, **kwargs):
self.browser.send("screen_on", **kwargs)
async def async_turn_on(self, **kwargs):
await self.browser.send("screen_on", **kwargs)
def turn_off(self, **kwargs):
self.browser.send("screen_off")
async def async_turn_off(self, **kwargs):
await self.browser.send("screen_off")