mirror of
https://github.com/home-assistant/core.git
synced 2026-09-12 11:38:47 +01:00
Add device model information for Nintendo Parental Controls (#154867)
This commit is contained in:
@@ -28,6 +28,8 @@ class NintendoDevice(CoordinatorEntity[NintendoUpdateCoordinator]):
|
||||
manufacturer="Nintendo",
|
||||
name=device.name,
|
||||
sw_version=device.extra["firmwareVersion"]["displayedVersion"],
|
||||
model=device.model,
|
||||
model_id=device.generation,
|
||||
)
|
||||
|
||||
async def async_added_to_hass(self) -> None:
|
||||
|
||||
@@ -38,6 +38,8 @@ def mock_nintendo_device() -> Device:
|
||||
mock.set_bedtime_alarm.return_value = None
|
||||
mock.update_max_daily_playtime.return_value = None
|
||||
mock.forced_termination_mode = True
|
||||
mock.model = "Test Model"
|
||||
mock.generation = "P00"
|
||||
return mock
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user