This change results in a bug where many entities are not loaded because of invalid format returned from ShellyDevice.init function. As per the new Home Assistant version, entity_id always needs to include platform.
This was already done properly in some places, like for example ShellyVersion sensor, where platform is added. However, this does not happen in all the places, which this PR now fixes.
This PR adds platform to every entity_id similarly to how it was done in ShellyVersion class.
Warning: I use only binary_sensor, switch and sensor entities from Shelly. I could not test light and cover platforms.
Home Assistant 2022.03.0 introduced following breaking change for this repo;
This change results in a bug where many entities are not loaded because of invalid format returned from ShellyDevice.init function. As per the new Home Assistant version, entity_id always needs to include platform.
This was already done properly in some places, like for example ShellyVersion sensor, where platform is added. However, this does not happen in all the places, which this PR now fixes.
This PR adds platform to every entity_id similarly to how it was done in ShellyVersion class.
Warning: I use only binary_sensor, switch and sensor entities from Shelly. I could not test light and cover platforms.