Add async_write_ha_state to Reolink select (#90764)

Add async_write_ha_state to select
This commit is contained in:
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

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()