Async vs sync inheritance mismatch fixes (#35088)

This commit is contained in:
Ville Skyttä authored and GitHub committed 2020-05-02 14:35:55 -07:00
1 parent a2048b4c7a
commit 5450cda3a5
3 files changed
+3 -3

No files matched your search

@@ -60,7 +60,7 @@ class FortigateDeviceScanner(DeviceScanner):
await self.async_update_info()
return [device.mac for device in self.last_results]
async def get_device_name(self, device):
def get_device_name(self, device):
"""Return the name of the given device or None if we don't know."""
name = next(
(result.hostname for result in self.last_results if result.mac == device),