Add grid sensors to SolarEdge_local (#27247)
Add grid sensors to SolarEdge_local (#27247)

* Add grid sensors

* Formatting

* Add possibility to add attributes

* Add optimizer attribute

* Remove bare 'except'

* add proper exception

* Remove return attribution 0

* Ad inverter attribution

* Style change

* Add attribute name to sensors constants

* SENSOR_TYPES  alphabetical and snake_case lower

* Formatting

* forgot snake_case lower

* Add extra meter sensors

* add critical error for debugging

* Update sensor.py

* swam meter sensors

* Add suitable icons to meter reading

* Fix for pointless-statement

homeassistant/components/solaredge_local/sensor.py:173:8: W0104: Statement seems to have no effect (pointless-statement)
homeassistant/components/solaredge_local/sensor.py:192:8: W0104: Statement seems to have no effect (pointless-statement)
homeassistant/components/solaredge_local/sensor.py:349:16: W0104: Statement seems to have no effect (pointless-statement)
homeassistant/components/solaredge_local/sensor.py:356:16: W0104: Statement seems to have no effect (pointless-statement)

* Rename import energy sensor

* Insert feadback

* Change to debug info

* Add check if attribute name exist

* Remove unnecessary else

* Add return None if no attributes

* flake

tboyce021/home-assistant,qedi-r/home-assistant,mKeRix/home-assistant,GenericStudent/home-assistant,w1ll1am23/home-assistant,soldag/home-assistant,nkgilley/home-assistant,tboyce1/home-assistant,FreekingDean/home-assistant,rohitranjan1991/home-assistant,lukas-hetzenecker/home-assistant,home-assistant/home-assistant,tboyce021/home-assistant,sander76/home-assistant,robbiet480/home-assistant,mKeRix/home-assistant,pschmitt/home-assistant,kennedyshead/home-assistant,tboyce1/home-assistant,mKeRix/home-assistant,adrienbrault/home-assistant,robbiet480/home-assistant,titilambert/home-assistant,balloob/home-assistant,postlund/home-assistant,Teagan42/home-assistant,mezz64/home-assistant,toddeye/home-assistant,soldag/home-assistant,partofthething/home-assistant,GenericStudent/home-assistant,postlund/home-assistant,aronsky/home-assistant,rohitranjan1991/home-assistant,aronsky/home-assistant,joopert/home-assistant,leppa/home-assistant,nkgilley/home-assistant,tboyce1/home-assistant,jawilson/home-assistant,balloob/home-assistant,FreekingDean/home-assistant,toddeye/home-assistant,leppa/home-assistant,qedi-r/home-assistant,tchellomello/home-assistant,mezz64/home-assistant,pschmitt/home-assistant,tchellomello/home-assistant,balloob/home-assistant,lukas-hetzenecker/home-assistant,Danielhiversen/home-assistant,joopert/home-assistant,sdague/home-assistant,adrienbrault/home-assistant,partofthething/home-assistant,turbokongen/home-assistant,Teagan42/home-assistant,rohitranjan1991/home-assistant,sdague/home-assistant,jawilson/home-assistant,turbokongen/home-assistant,Danielhiversen/home-assistant,kennedyshead/home-assistant,home-assistant/home-assistant,w1ll1am23/home-assistant,tboyce1/home-assistant,mKeRix/home-assistant,titilambert/home-assistant,sander76/home-assistant