Add basic device information for UniFi clients device registry entries (#41839)

pull/41873/head
Robert Svensson 2020-10-15 08:10:59 +02:00 committed by GitHub
parent 58a432685c
commit 6ccdf62e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -54,4 +54,8 @@ class UniFiClient(UniFiBase):
@property
def device_info(self) -> dict:
"""Return a client description for device registry."""
return {"connections": {(CONNECTION_NETWORK_MAC, self.client.mac)}}
return {
"connections": {(CONNECTION_NETWORK_MAC, self.client.mac)},
"default_name": self.name,
"default_manufacturer": self.client.oui,
}