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

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