Implement suggested area for netatmo (#46802)

This commit is contained in:
J. Nick Koston
2021-02-19 19:57:37 -10:00
committed by GitHub
parent 3e334a4950
commit 2807cb1de7

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."""