Added async_will_remove_from_hass debug

This commit is contained in:
Tomaae 2022-08-19 11:40:02 +02:00
parent 952f3877b7
commit c468e2776e
No known key found for this signature in database
GPG key ID: 8360BBD8A381D1C0

View file

@ -294,10 +294,14 @@ class MikrotikEntity:
return attributes
async def async_added_to_hass(self):
async def async_added_to_hass(self) -> None:
"""Run when entity about to be added to hass"""
_LOGGER.debug("New entity %s (%s)", self._inst, self.unique_id)
async def async_will_remove_from_hass(self) -> None:
"""Run when entity about to be removed from hass"""
_LOGGER.debug("Removing entity %s (%s)", self._inst, self.unique_id)
async def start(self):
"""Dummy run function"""
_LOGGER.error("Start functionality does not exist for %s", self.entity_id)