Add configuration url to SABnzbd device info (#131617)

This commit is contained in:
Jan-Philipp Benecke 2024-11-26 14:39:21 +01:00 committed by GitHub
parent 1fc3194613
commit 9510ef56f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,6 @@
"""Base entity for Sabnzbd."""
from homeassistant.const import CONF_URL
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
from homeassistant.helpers.entity import EntityDescription
from homeassistant.helpers.update_coordinator import CoordinatorEntity
@ -28,4 +29,5 @@ class SabnzbdEntity(CoordinatorEntity[SabnzbdUpdateCoordinator]):
entry_type=DeviceEntryType.SERVICE,
identifiers={(DOMAIN, entry_id)},
sw_version=coordinator.data["version"],
configuration_url=coordinator.config_entry.data[CONF_URL],
)