Set Nord Pool device as a service (#132717)

This commit is contained in:
G Johansson 2024-12-09 23:48:23 +01:00 committed by GitHub
parent 020db5f822
commit b1c17334f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,7 @@
from __future__ import annotations
from homeassistant.helpers.device_registry import DeviceInfo
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
from homeassistant.helpers.entity import EntityDescription
from homeassistant.helpers.update_coordinator import CoordinatorEntity
@ -29,4 +29,5 @@ class NordpoolBaseEntity(CoordinatorEntity[NordPoolDataUpdateCoordinator]):
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, area)},
name=f"Nord Pool {area}",
entry_type=DeviceEntryType.SERVICE,
)