Fix unnecessary-return-none in iotty (#122947)

pull/115645/head
epenet 2024-07-31 20:21:26 +02:00 committed by GitHub
parent bc25657f0a
commit 93bcd413a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ async def async_setup_entry(
def async_update_data() -> None: def async_update_data() -> None:
"""Handle updated data from the API endpoint.""" """Handle updated data from the API endpoint."""
if not coordinator.last_update_success: if not coordinator.last_update_success:
return None return
devices = coordinator.data.devices devices = coordinator.data.devices
entities = [] entities = []