From d7da32cbb93dfb5707e190a56f672957747c77d9 Mon Sep 17 00:00:00 2001 From: Matt Zimmerman Date: Sun, 23 May 2021 18:27:54 -0700 Subject: [PATCH] Add refresh when changing SmartTub filtration settings (#51014) --- 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 07866d0b7a4..95a862502cd 100644 --- a/homeassistant/components/smarttub/sensor.py +++ b/homeassistant/components/smarttub/sensor.py @@ -129,6 +129,7 @@ class SmartTubPrimaryFiltrationCycle(SmartTubSensor): 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 @@ class SmartTubSecondaryFiltrationCycle(SmartTubSensor): kwargs[ATTR_MODE].upper() ] await self.cycle.set_mode(mode) + await self.coordinator.async_request_refresh()