Clean up unnecessary method from Netatmo code (#45546)

This commit is contained in:
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

View file

@ -72,16 +72,6 @@ class NetatmoBase(Entity):
data_class[SIGNAL_NAME], self.async_update_callback 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 @callback
def async_update_callback(self): def async_update_callback(self):
"""Update the entity's state.""" """Update the entity's state."""