Dashboards, templates and automations still pointing to the older entities need to use their replacements. Appliance switches give way to binary status sensors, while media-player switches and separate source, repeat, shuffle, playback and volume sensors give way to the media-player entity.
For heat pumps with domestic hot water, the water-heater entity replaces the old switch and temperature or cooling-setpoint sensors. This removes the deprecated copies; it does not remove the supported equipment from Home Assistant.