mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-10 01:14:33 +02:00
Added async_will_remove_from_hass debug
This commit is contained in:
parent
952f3877b7
commit
c468e2776e
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue