Make NYT Games a service (#126613)
This commit is contained in:
parent
589910b49b
commit
77029b0197
2 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue