Add configuration_url to Netatmo devices (#58160)

This commit is contained in:
Tobias Sauerwein 2021-10-22 11:14:28 +02:00 committed by GitHub
parent 70469e0979
commit 83e45300c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 7 deletions

View file

@ -52,6 +52,7 @@ from .const import (
MANUFACTURER,
SERVICE_SET_SCHEDULE,
SIGNAL_NAME,
TYPE_ENERGY,
)
from .data_handler import (
HOMEDATA_DATA_CLASS_NAME,
@ -209,6 +210,8 @@ class NetatmoThermostat(NetatmoBase, ClimateEntity):
self._model = NA_THERM
break
self._netatmo_type = TYPE_ENERGY
self._device_name = self._data.rooms[home_id][room_id]["name"]
self._attr_name = f"{MANUFACTURER} {self._device_name}"
self._current_temperature: float | None = None