ProudElm / solaredgeoptimizers

Intergration to get optimizers information from the SolarEdge portal
49 stars 13 forks source link

List items in warning level, please lower to debug #71

Closed Mariusthvdb closed 6 months ago

Mariusthvdb commented 6 months ago

getting this when the HA logger level is set to warning. Please check if you can downgrade that to debug, if this is done for debugging purposes.

In Warning it really serves no purpose, and clutters the log unnecessarily. Thanks for having a look.

Deze fout is ontstaan door een aangepaste integratie.

Logger: custom_components.solaredgeoptimizers.sensor
Bron: custom_components/solaredgeoptimizers/sensor.py:189
integratie: SolarEdge Optimizers Data (documentatie, problemen)
Eerst voorgekomen: 10:26:31 (174 gebeurtenissen)
Laatst gelogd: 10:26:31

Item: <solaredgeoptimizers.solaredgeoptimizers.SolarEdgeOptimizerData object at 0x7fc42090ab10> ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_json_obj', 'current', 'lastmeasurement', 'lifetime_energy', 'manufacturer', 'model', 'optimizer_voltage', 'paneel_desciption', 'paneel_id', 'power', 'serialnumber', 'voltage']
Item: <solaredgeoptimizers.solaredgeoptimizers.SolarEdgeOptimizerData object at 0x7fc420909c40> ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_json_obj', 'current', 'lastmeasurement', 'lifetime_energy', 'manufacturer', 'model', 'optimizer_voltage', 'paneel_desciption', 'paneel_id', 'power', 'serialnumber', 'voltage']
Item: <solaredgeoptimizers.solaredgeoptimizers.SolarEdgeOptimizerData object at 0x7fc42694d5b0> ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_json_obj', 'current', 'lastmeasurement', 'lifetime_energy', 'manufacturer', 'model', 'optimizer_voltage', 'paneel_desciption', 'paneel_id', 'power', 'serialnumber', 'voltage']
Item: <solaredgeoptimizers.solaredgeoptimizers.SolarEdgeOptimizerData object at 0x7fc41db68590> ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_json_obj', 'current', 'lastmeasurement', 'lifetime_energy', 'manufacturer', 'model', 'optimizer_voltage', 'paneel_desciption', 'paneel_id', 'power', 'serialnumber', 'voltage']
Item: <solaredgeoptimizers.solaredgeoptimizers.SolarEdgeOptimizerData object at 0x7fc41e333aa0> ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_json_obj', 'current', 'lastmeasurement', 'lifetime_energy', 'manufacturer', 'model', 'optimizer_voltage', 'paneel_desciption', 'paneel_id', 'power', 'serialnumber', 'voltage']

caused by

_LOGGER.warning("Item: %s %s", item, dir(item))

at line 189 in my resource.

I checkdi it in the repo, and cant find the at all in the releases.

those are a bit mixed up n=because manifest is showing 1.2.2, while HACS is showing 1.2.4. Even your latest listed release is 1.2.3.

Mariusthvdb commented 6 months ago

so this was because of the comment in the sensor code above. took that out (redownloaded 1.2.4 via HACS) once more, and logging gone.

closing