kellerza / pysma

Async library for SMA Solar's WebConnect interface
MIT License
59 stars 51 forks source link

Adding dict of removed sensors to provide backward compatibility #53

Closed rklomp closed 3 years ago

rklomp commented 3 years ago

Hi @kellerza ,

I have added aliases to be able to provide backward compatibility with the three names we removed. This way I can have my import of yaml config look at aliases. This makes https://github.com/home-assistant/core/pull/48003 less breaking. I was for example using pv_power in my HA setup. When I run my current import code it will automatically show this as grid_power_alternative with the original entity ID.

image

Let me know what you think. I am also fine with dropping the names completely, but having the backward compatibility makes it more user friendly

Regards @rklomp

rklomp commented 3 years ago

For reference, this is the commit of the improved import https://github.com/home-assistant/core/pull/48003/commits/3cd08b045fc83fc8417b087448dc8d1ec9b7b31e