mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +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
|
@property
|
||||||
def device_model(self) -> str | None:
|
def device_model(self) -> str | None:
|
||||||
"""Return device model information."""
|
"""Return device model information."""
|
||||||
# The API intentionally returns minimal information about specific
|
return DEVICE_TYPE_MAP.get(self._device.type) if self._device.type else None
|
||||||
# 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)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def suggested_area(self) -> str | None:
|
def suggested_area(self) -> str | None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user