From 76ce33dc2403fe902d151b29a98ef026c10e666f Mon Sep 17 00:00:00 2001 From: Robert Svensson Date: Sun, 29 Aug 2021 21:10:18 +0200 Subject: [PATCH] Only return not return None (#55423) --- homeassistant/components/unifi/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/unifi/sensor.py b/homeassistant/components/unifi/sensor.py index 6a009415163..5cbf61d9635 100644 --- a/homeassistant/components/unifi/sensor.py +++ b/homeassistant/components/unifi/sensor.py @@ -157,7 +157,7 @@ class UniFiUpTimeSensor(UniFiClient, SensorEntity): self.last_updated_time = self.client.uptime if not update_state: - return None + return super().async_update_callback()