mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Make NYT Games a service (#126613)
This commit is contained in:
parent
589910b49b
commit
77029b0197
@ -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",
|
||||
)
|
||||
|
@ -7,7 +7,7 @@
|
||||
'connections': set({
|
||||
}),
|
||||
'disabled_by': None,
|
||||
'entry_type': None,
|
||||
'entry_type': <DeviceEntryType.SERVICE: 'service'>,
|
||||
'hw_version': None,
|
||||
'id': <ANY>,
|
||||
'identifiers': set({
|
||||
|
Loading…
x
Reference in New Issue
Block a user