mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Code cleanup for nest device info (#99511)
This commit is contained in:
parent
c3841f8734
commit
1048f47a91
@ -66,10 +66,7 @@ class NestDeviceInfo:
|
||||
@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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user