|
@@ -106,6 +106,8 @@ class TuyaLocalEntity:
|
|
|
|
|
|
|
|
async def async_added_to_hass(self):
|
|
async def async_added_to_hass(self):
|
|
|
self._device.register_entity(self)
|
|
self._device.register_entity(self)
|
|
|
|
|
+ if self._config.deprecated:
|
|
|
|
|
+ _LOGGER.warning(self._config.deprecation_message)
|
|
|
|
|
|
|
|
async def async_will_remove_from_hass(self):
|
|
async def async_will_remove_from_hass(self):
|
|
|
await self._device.async_unregister_entity(self)
|
|
await self._device.async_unregister_entity(self)
|