Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions homeassistant/components/nest/device_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ def device_name(self) -> str | None:
@property
def device_model(self) -> str | None:
"""Return device model information."""
# The API intentionally returns minimal information about specific
# devices, instead relying on traits, but we can infer a generic model
# name based on the type
return DEVICE_TYPE_MAP.get(self._device.type or "", None)
return DEVICE_TYPE_MAP.get(self._device.type) if self._device.type else None

@property
def suggested_area(self) -> str | None:
Expand Down