mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Add configuration_url to devolo Home Control (#58594)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from urllib.parse import urlparse
|
||||
|
||||
from devolo_home_control_api.devices.zwave import Zwave
|
||||
from devolo_home_control_api.homecontrol import HomeControl
|
||||
@@ -33,6 +34,7 @@ class DevoloDeviceEntity(Entity):
|
||||
self._attr_should_poll = False
|
||||
self._attr_unique_id = element_uid
|
||||
self._attr_device_info = DeviceInfo(
|
||||
configuration_url=f"https://{urlparse(device_instance.href).netloc}",
|
||||
identifiers={(DOMAIN, self._device_instance.uid)},
|
||||
manufacturer=device_instance.brand,
|
||||
model=device_instance.name,
|
||||
|
@@ -45,6 +45,7 @@ class DeviceMock(Zwave):
|
||||
self.name = "Test Device"
|
||||
self.uid = "Test"
|
||||
self.settings_property = {"general_device_settings": SettingsMock()}
|
||||
self.href = "https://www.mydevolo.com"
|
||||
|
||||
|
||||
class BinarySensorMock(DeviceMock):
|
||||
|
Reference in New Issue
Block a user