Add device model information for Nintendo Parental Controls (#154867)

This commit is contained in:
Jordan Harvey
2025-10-20 15:27:50 +03:00
committed by GitHub
parent fedeca107a
commit 5dcb68cdf6
2 changed files with 4 additions and 0 deletions
@@ -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