mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +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
|
@staticmethod
|
||||||
def device_info(device: StarlineDevice) -> DeviceInfo:
|
def device_info(device: StarlineDevice) -> DeviceInfo:
|
||||||
"""Device information for entities."""
|
"""Device information for entities."""
|
||||||
return {
|
return DeviceInfo(
|
||||||
"identifiers": {(DOMAIN, device.device_id)},
|
identifiers={(DOMAIN, device.device_id)},
|
||||||
"manufacturer": "StarLine",
|
manufacturer="StarLine",
|
||||||
"name": device.name,
|
model=device.typename,
|
||||||
"sw_version": device.fw_version,
|
name=device.name,
|
||||||
"model": device.typename,
|
sw_version=device.fw_version,
|
||||||
}
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def gps_attrs(device: StarlineDevice) -> dict[str, Any]:
|
def gps_attrs(device: StarlineDevice) -> dict[str, Any]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user