mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 08:07:45 +00:00
Show correct model string in myuplink (#114921)
This commit is contained in:
parent
b67e9b28d6
commit
04e5086e01
@ -5,7 +5,7 @@ from __future__ import annotations
|
|||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
|
|
||||||
from aiohttp import ClientError, ClientResponseError
|
from aiohttp import ClientError, ClientResponseError
|
||||||
from myuplink import MyUplinkAPI, get_manufacturer, get_system_name
|
from myuplink import MyUplinkAPI, get_manufacturer, get_model, get_system_name
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import Platform
|
from homeassistant.const import Platform
|
||||||
@ -92,7 +92,7 @@ def create_devices(
|
|||||||
identifiers={(DOMAIN, device_id)},
|
identifiers={(DOMAIN, device_id)},
|
||||||
name=get_system_name(system),
|
name=get_system_name(system),
|
||||||
manufacturer=get_manufacturer(device),
|
manufacturer=get_manufacturer(device),
|
||||||
model=device.productName,
|
model=get_model(device),
|
||||||
sw_version=device.firmwareCurrent,
|
sw_version=device.firmwareCurrent,
|
||||||
serial_number=device.product_serial_number,
|
serial_number=device.product_serial_number,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user