mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Move Z-Wave refresh value service out of task (#93866)
This commit is contained in:
parent
22e7c9cc76
commit
cb616cdf4e
@ -80,7 +80,7 @@ class ZWaveBaseEntity(Entity):
|
||||
async def async_poll_value(self, refresh_all_values: bool) -> None:
|
||||
"""Poll a value."""
|
||||
if not refresh_all_values:
|
||||
self.hass.async_create_task(self._async_poll_value(self.info.primary_value))
|
||||
await self._async_poll_value(self.info.primary_value)
|
||||
LOGGER.info(
|
||||
(
|
||||
"Refreshing primary value %s for %s, "
|
||||
@ -92,7 +92,7 @@ class ZWaveBaseEntity(Entity):
|
||||
return
|
||||
|
||||
for value_id in self.watched_value_ids:
|
||||
self.hass.async_create_task(self._async_poll_value(value_id))
|
||||
await self._async_poll_value(value_id)
|
||||
|
||||
LOGGER.info(
|
||||
(
|
||||
|
Loading…
x
Reference in New Issue
Block a user