Add async_write_ha_state to Reolink select (#90764)

Add async_write_ha_state to select
pull/90779/head
starkillerOG 2023-04-04 11:48:14 +02:00 committed by GitHub
parent dfa0b5439b
commit a05fbdeedb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -144,3 +144,4 @@ class ReolinkSelectEntity(ReolinkChannelCoordinatorEntity, SelectEntity):
async def async_select_option(self, option: str) -> None:
"""Change the selected option."""
await self.entity_description.method(self._host.api, self._channel, option)
self.async_write_ha_state()