mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Only return not return None (#55423)
This commit is contained in:
parent
8b436c43f7
commit
76ce33dc24
@ -157,7 +157,7 @@ class UniFiUpTimeSensor(UniFiClient, SensorEntity):
|
|||||||
self.last_updated_time = self.client.uptime
|
self.last_updated_time = self.client.uptime
|
||||||
|
|
||||||
if not update_state:
|
if not update_state:
|
||||||
return None
|
return
|
||||||
|
|
||||||
super().async_update_callback()
|
super().async_update_callback()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user