Clean up unnecessary method from Netatmo code (#45546)

pull/45560/head
Tobias Sauerwein 2021-01-26 01:02:48 +01:00 committed by GitHub
parent 25469f1a07
commit ec47df4880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -72,16 +72,6 @@ class NetatmoBase(Entity):
data_class[SIGNAL_NAME], self.async_update_callback
)
async def async_remove(self):
"""Clean up when removing entity."""
entity_registry = await self.hass.helpers.entity_registry.async_get_registry()
entity_entry = entity_registry.async_get(self.entity_id)
if not entity_entry:
await super().async_remove()
return
entity_registry.async_remove(self.entity_id)
@callback
def async_update_callback(self):
"""Update the entity's state."""