mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
Add configuration url to SABnzbd device info (#131617)
This commit is contained in:
parent
1fc3194613
commit
9510ef56f9
@ -1,5 +1,6 @@
|
|||||||
"""Base entity for Sabnzbd."""
|
"""Base entity for Sabnzbd."""
|
||||||
|
|
||||||
|
from homeassistant.const import CONF_URL
|
||||||
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
|
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
|
||||||
from homeassistant.helpers.entity import EntityDescription
|
from homeassistant.helpers.entity import EntityDescription
|
||||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||||
@ -28,4 +29,5 @@ class SabnzbdEntity(CoordinatorEntity[SabnzbdUpdateCoordinator]):
|
|||||||
entry_type=DeviceEntryType.SERVICE,
|
entry_type=DeviceEntryType.SERVICE,
|
||||||
identifiers={(DOMAIN, entry_id)},
|
identifiers={(DOMAIN, entry_id)},
|
||||||
sw_version=coordinator.data["version"],
|
sw_version=coordinator.data["version"],
|
||||||
|
configuration_url=coordinator.config_entry.data[CONF_URL],
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user