Revert get_model from myuplink lib (#113811)

This commit is contained in:
Åke Strandberg 2024-03-19 17:27:16 +01:00 committed by GitHub
parent 670bd97777
commit 0fa395556d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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_model, get_system_name from myuplink import MyUplinkAPI, get_manufacturer, 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=get_model(device), model=device.productName,
sw_version=device.firmwareCurrent, sw_version=device.firmwareCurrent,
serial_number=device.product_serial_number, serial_number=device.product_serial_number,
) )