Fix missing await in modbus platforms (followup on async PR) (#50710)

This commit is contained in:
jan iversen 2021-05-17 14:20:51 +02:00 committed by GitHub
parent 97559087b5
commit 6b34ba012c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -174,7 +174,7 @@ class ModbusCover(CoverEntity, RestoreEntity):
else:
await self._async_write_register(self._state_open)
self.async_update()
await self.async_update()
async def async_close_cover(self, **kwargs: Any) -> None:
"""Close cover."""
@ -183,7 +183,7 @@ class ModbusCover(CoverEntity, RestoreEntity):
else:
await self._async_write_register(self._state_closed)
self.async_update()
await self.async_update()
async def async_update(self, now=None):
"""Update the state of the cover."""