Deprecation: log the warning when the entity is added to hass
Logging the warning in async_setup_platform results in it being
always logged, as we have not been through the entity registry at
that point.
Only log when the entity is actually added to hass, to avoid logging
a warning for disabled entities.
Discussion #1961