diff --git a/homeassistant/components/garadget/cover.py b/homeassistant/components/garadget/cover.py index 96ebe698605..826f21e9f88 100644 --- a/homeassistant/components/garadget/cover.py +++ b/homeassistant/components/garadget/cover.py @@ -233,7 +233,7 @@ class GaradgetCover(CoverEntity): self._start_watcher("stop") return ret["return_value"] == 1 - def update(self): + def update(self) -> None: """Get updated status from API.""" try: status = self._get_variable("doorStatus") diff --git a/homeassistant/components/lutron/cover.py b/homeassistant/components/lutron/cover.py index fa62ef3745a..65a1c737d55 100644 --- a/homeassistant/components/lutron/cover.py +++ b/homeassistant/components/lutron/cover.py @@ -66,7 +66,7 @@ class LutronCover(LutronDevice, CoverEntity): position = kwargs[ATTR_POSITION] self._lutron_device.level = position - def update(self): + def update(self) -> None: """Call when forcing a refresh of the device.""" # Reading the property (rather than last_level()) fetches value level = self._lutron_device.level diff --git a/homeassistant/components/soma/cover.py b/homeassistant/components/soma/cover.py index 0130b0ca7b1..116f88aa20e 100644 --- a/homeassistant/components/soma/cover.py +++ b/homeassistant/components/soma/cover.py @@ -102,7 +102,7 @@ class SomaTilt(SomaEntity, CoverEntity): ) self.set_position(kwargs[ATTR_TILT_POSITION]) - async def async_update(self): + async def async_update(self) -> None: """Update the entity with the latest data.""" response = await self.get_shade_state_from_api() @@ -172,7 +172,7 @@ class SomaShade(SomaEntity, CoverEntity): f'Error while setting the cover position ({self.name}): {response["msg"]}' ) - async def async_update(self): + async def async_update(self) -> None: """Update the cover with the latest data.""" response = await self.get_shade_state_from_api() diff --git a/homeassistant/components/zha/cover.py b/homeassistant/components/zha/cover.py index 6ade62343b1..f6c67e6981d 100644 --- a/homeassistant/components/zha/cover.py +++ b/homeassistant/components/zha/cover.py @@ -162,7 +162,7 @@ class ZhaCover(ZhaEntity, CoverEntity): self._state = STATE_OPEN if self._current_position > 0 else STATE_CLOSED self.async_write_ha_state() - async def async_update(self): + async def async_update(self) -> None: """Attempt to retrieve the open/close state of the cover.""" await super().async_update() await self.async_get_state() diff --git a/homeassistant/components/zha/fan.py b/homeassistant/components/zha/fan.py index 3b9793c5137..8e24427b679 100644 --- a/homeassistant/components/zha/fan.py +++ b/homeassistant/components/zha/fan.py @@ -202,7 +202,7 @@ class FanGroup(BaseFan, ZhaGroupEntity): self.error("Could not set fan mode: %s", ex) self.async_set_state(0, "fan_mode", fan_mode) - async def async_update(self): + async def async_update(self) -> None: """Attempt to retrieve on off state from the fan.""" all_states = [self.hass.states.get(x) for x in self._entity_ids] states: list[State] = list(filter(None, all_states)) diff --git a/homeassistant/components/zha/lock.py b/homeassistant/components/zha/lock.py index 6615141f4d1..a2ec5e068cb 100644 --- a/homeassistant/components/zha/lock.py +++ b/homeassistant/components/zha/lock.py @@ -137,7 +137,7 @@ class ZhaDoorLock(ZhaEntity, LockEntity): return self.async_write_ha_state() - async def async_update(self): + async def async_update(self) -> None: """Attempt to retrieve state from the lock.""" await super().async_update() await self.async_get_state()