mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Use DeviceInfo in starline (#58576)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
b175f424d6
commit
1a5333f376
@ -129,13 +129,13 @@ class StarlineAccount:
|
||||
@staticmethod
|
||||
def device_info(device: StarlineDevice) -> DeviceInfo:
|
||||
"""Device information for entities."""
|
||||
return {
|
||||
"identifiers": {(DOMAIN, device.device_id)},
|
||||
"manufacturer": "StarLine",
|
||||
"name": device.name,
|
||||
"sw_version": device.fw_version,
|
||||
"model": device.typename,
|
||||
}
|
||||
return DeviceInfo(
|
||||
identifiers={(DOMAIN, device.device_id)},
|
||||
manufacturer="StarLine",
|
||||
model=device.typename,
|
||||
name=device.name,
|
||||
sw_version=device.fw_version,
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def gps_attrs(device: StarlineDevice) -> dict[str, Any]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user