diff --git a/homeassistant/components/qbittorrent/sensor.py b/homeassistant/components/qbittorrent/sensor.py index 1b34bda7a44..151055a1688 100644 --- a/homeassistant/components/qbittorrent/sensor.py +++ b/homeassistant/components/qbittorrent/sensor.py @@ -113,7 +113,7 @@ class QBittorrentSensor(SensorEntity): self._attr_name = f"{client_name} {description.name}" self._attr_available = False - def update(self): + def update(self) -> None: """Get the latest data from qBittorrent and updates the state.""" try: data = self.client.sync_main_data() diff --git a/homeassistant/components/qnap/sensor.py b/homeassistant/components/qnap/sensor.py index 7366dc5dc41..8c093eb9232 100644 --- a/homeassistant/components/qnap/sensor.py +++ b/homeassistant/components/qnap/sensor.py @@ -330,7 +330,7 @@ class QNAPSensor(SensorEntity): ) return f"{server_name} {self.entity_description.name}" - def update(self): + def update(self) -> None: """Get the latest data for the states.""" self._api.update()