Adjust typing of _attr_extra_state_attributes (#53529)

This commit is contained in:
Franck Nijhof 2021-07-27 01:25:22 +02:00 committed by GitHub
parent 8ff3b2a2f6
commit d4c4263730
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 19 deletions

View file

@ -30,9 +30,7 @@ class NetatmoBase(Entity):
self._model: str = ""
self._attr_name = None
self._attr_unique_id = None
self._attr_extra_state_attributes: dict = {
ATTR_ATTRIBUTION: DEFAULT_ATTRIBUTION
}
self._attr_extra_state_attributes = {ATTR_ATTRIBUTION: DEFAULT_ATTRIBUTION}
async def async_added_to_hass(self) -> None:
"""Entity created."""