Mark PEGELONLINE entries as service (#129278)

set entry_type service
This commit is contained in:
Michael 2024-10-27 20:35:19 +01:00 committed by GitHub
parent 2888e5748e
commit bc708dee30
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.update_coordinator import CoordinatorEntity
from .const import DOMAIN
@ -29,4 +29,5 @@ class PegelOnlineEntity(CoordinatorEntity[PegelOnlineDataUpdateCoordinator]):
name=f"{self.station.name} {self.station.water_name}",
manufacturer=self.station.agency,
configuration_url=self.station.base_data_url,
entry_type=DeviceEntryType.SERVICE,
)