From 7198273a42a1b582aa22776ebe9c729a6dc7628b Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 6 Sep 2022 09:43:49 +0200 Subject: [PATCH] Improve entity type hints [q] (#77875) --- homeassistant/components/qbittorrent/sensor.py | 2 +- homeassistant/components/qnap/sensor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()