Implement suggested area for netatmo (#46802)

pull/46809/head
J. Nick Koston 2021-02-19 19:57:37 -10:00 committed by GitHub
parent 3e334a4950
commit 2807cb1de7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -567,6 +567,11 @@ class NetatmoThermostat(NetatmoBase, ClimateEntity):
schedule_id,
)
@property
def device_info(self):
"""Return the device info for the thermostat."""
return {**super().device_info, "suggested_area": self._room_data["name"]}
def interpolate(batterylevel, module_type):
"""Interpolate battery level depending on device type."""