Make NYT Games a service (#126613)

This commit is contained in:
Joost Lekkerkerker 2024-09-24 13:38:07 +02:00 committed by GitHub
parent 589910b49b
commit 77029b0197
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
"""Base class for NYT Games entities."""
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
@ -19,5 +19,6 @@ class NYTGamesEntity(CoordinatorEntity[NYTGamesCoordinator]):
assert unique_id is not None
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, unique_id)},
entry_type=DeviceEntryType.SERVICE,
manufacturer="New York Times",
)

View file

@ -7,7 +7,7 @@
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'entry_type': <DeviceEntryType.SERVICE: 'service'>,
'hw_version': None,
'id': <ANY>,
'identifiers': set({