|
|
@@ -114,6 +114,12 @@ class TuyaLocalEntity:
|
|
|
await self._device.async_refresh()
|
|
|
|
|
|
async def async_added_to_hass(self):
|
|
|
+ if not self.enabled:
|
|
|
+ _LOGGER.warning(
|
|
|
+ "HA bug #152729: Entity %s is not enabled, but async_added_to_hass was called",
|
|
|
+ self.unique_id,
|
|
|
+ )
|
|
|
+ return
|
|
|
self._device.register_entity(self)
|
|
|
if self._config.deprecated:
|
|
|
_LOGGER.warning(self._config.deprecation_message)
|