djansen1987 / SAJeSolar

SAJ eSolar Portal Sensors
GNU General Public License v3.0
21 stars 13 forks source link

unit_of_measurement #8

Closed megapeer closed 2 years ago

megapeer commented 2 years ago

Logger: homeassistant.components.sensor Source: components/sensor/init.py:151 Integration: Sensor (documentation, issues) First occurred: 21:58:16 (15 occurrences) Last logged: 21:58:19

custom_components.saj_esolar.sensor is setting 'unit_of_measurement' on an instance of SensorEntityDescription, this is not valid and will be unsupported from Home Assistant 2021.11. Please report it to the custom component author.

djansen1987 commented 2 years ago

Thanks for reporting! Appreciated. Will need some time for this as it will resolve in a lot of programming and again restructuring of the component (again).

djansen1987 commented 2 years ago

Should be fixed in v1.2.4. Please see release notes for details. Please let me know if this solves the Issue.

djansen1987 commented 2 years ago

Fixed with above solutions

8OND007 commented 2 years ago

bug "custom_components.saj_esolar.sensor is setting 'unit_of_measurement' on an instance of SensorEntityDescription, this is not valid and will be unsupported from Home Assistant 2021.11. Please report it to the custom component author." is reappearing in my log file.

djansen1987 commented 2 years ago

Hi @8OND007, which version of saj_esolar are you running. This should be fixed in a couple of version back.

8OND007 commented 2 years ago

Version 1.2.4 according to the manifest.json file.

Strange HACS did not see 2 updates 1.2.5 and 1.2.6. I just used the "Redownload" function in HACS so I though I would have 1.2.6. I restarted HA with the new 1.2.6 but in log I still see : "custom_components.saj_esolar.sensor is setting 'unit_of_measurement' on an instance of SensorEntityDescription, this is not valid and will be unsupported from Home Assistant 2021.11. Please report it to the custom component author." Again checked manifest.json, and it is still 1.2.4. Maybe something is wrong with the update version push ?

8OND007 commented 2 years ago

the actual manifest.json file on github is still on 1.2.4. This is probably the cause my HACS does not see a newer update ?

djansen1987 commented 2 years ago

Hi, i updated the manifest.json, could you check again

djansen1987 commented 2 years ago

Continue issue in https://github.com/djansen1987/SAJeSolar/issues/19