Closed thargy closed 5 months ago
I have confirmed that commenting out the property (Lines 287-297) not only fixes the log errors, but a bunch of entities that were missing/broken on my garage doors are now working again. I can't confirm whether the memory leak has gone, as it is intermittent, and may not be related to pymee/homee.
I could find no usage of the state_attributes
property, nor homee_data
attribute that got added to all entities as part of this commit; but you will probably want to review before just removing - hence I've not put in a PR.
Can confirm this worked for me, switches and sensors of my garage are back. Only my cover entity was present before. Thank you
Released a fix on https://github.com/Taraman17/hass-homee/tree/v2.9.0-beta.2
fixed with #49
Type of problem
Version
Encountered in
2.8.0
,2.9.0-beta.1
. Also found in2.5.1
from @FreshlyBrewedCode.Detailed description
I noticed random system freezes where my Memory usage went over 91G (16G RAM) when it's usually ~10G max. I checked logs and noticed that errors from pymee and homee seemed to always occur as this happened. Reinstalled latest versions (see above), and re-configured homee from scratch (after in-place upgrade did not resolve anything). However, that didn't work either, and on clean start up I get the following in logs.
The logs then continue to span
AttributeError: 'cached_property' object has no attribute 'fget'
fromFile "/config/custom_components/homee/__init__.py", line 290, in state_attributes
Error log