From b707580b4c47f82118fda919f98fe9c442c0191d Mon Sep 17 00:00:00 2001 From: Matt Zimmerman Date: Sun, 23 May 2021 15:16:45 -0700 Subject: [PATCH] add missing refresh when changing filtration settings --- homeassistant/components/smarttub/sensor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/smarttub/sensor.py b/homeassistant/components/smarttub/sensor.py index 07866d0b7a4e66..95a862502cdf9b 100644 --- a/homeassistant/components/smarttub/sensor.py +++ b/homeassistant/components/smarttub/sensor.py @@ -129,6 +129,7 @@ async def async_set_primary_filtration(self, **kwargs): duration=kwargs.get(ATTR_DURATION), start_hour=kwargs.get(ATTR_START_HOUR), ) + await self.coordinator.async_request_refresh() class SmartTubSecondaryFiltrationCycle(SmartTubSensor): @@ -164,3 +165,4 @@ async def async_set_secondary_filtration(self, **kwargs): kwargs[ATTR_MODE].upper() ] await self.cycle.set_mode(mode) + await self.coordinator.async_request_refresh()