diff --git a/homeassistant/components/goodwe/number.py b/homeassistant/components/goodwe/number.py index d54fb8d8d0c..ce36bb35bf9 100644 --- a/homeassistant/components/goodwe/number.py +++ b/homeassistant/components/goodwe/number.py @@ -131,6 +131,11 @@ class InverterNumberEntity(NumberEntity): self._attr_native_value = float(current_value) self._inverter: Inverter = inverter + async def async_update(self) -> None: + """Get the current value from inverter.""" + value = await self.entity_description.getter(self._inverter) + self._attr_native_value = float(value) + async def async_set_native_value(self, value: float) -> None: """Set new value.""" await self.entity_description.setter(self._inverter, int(value)) diff --git a/homeassistant/components/goodwe/select.py b/homeassistant/components/goodwe/select.py index f42f50c93fc..4fa84c8401f 100644 --- a/homeassistant/components/goodwe/select.py +++ b/homeassistant/components/goodwe/select.py @@ -89,6 +89,11 @@ class InverterOperationModeEntity(SelectEntity): self._attr_current_option = current_mode self._inverter: Inverter = inverter + async def async_update(self) -> None: + """Get the current value from inverter.""" + value = await self._inverter.get_operation_mode() + self._attr_current_option = _MODE_TO_OPTION[value] + async def async_select_option(self, option: str) -> None: """Change the selected option.""" await self._inverter.set_operation_mode(_OPTION_TO_MODE[option])