greghesp / ha-bambulab

A Home Assistant Integration for Bambu Lab Printers
858 stars 69 forks source link

[Bug] Integration not working after latest update #564

Closed Ali229 closed 2 months ago

Ali229 commented 2 months ago

Describe the bug

After the update the integration has stopped working sensors are unavailable

To Reproduce

Update to latest version

Expected Behaviour

All sensors working

What device are you using?

X1C

Diagnostic Output

Logger: custom_components.bambu_lab.pybambu
Source: custom_components/bambu_lab/pybambu/bambu_client.py:265
integration: Bambu Lab ([documentation](https://github.com/greghesp/ha-bambulab), [issues](https://github.com/greghesp/ha-bambulab/issues))
First occurred: 10:36:01 AM (306 occurrences)
Last logged: 10:39:51 AM

A listener loop thread exception occurred:

Logger: custom_components.bambu_lab.pybambu
Source: custom_components/bambu_lab/pybambu/bambu_client.py:266
integration: Bambu Lab ([documentation](https://github.com/greghesp/ha-bambulab), [issues](https://github.com/greghesp/ha-bambulab/issues))
First occurred: 10:36:01 AM (306 occurrences)
Last logged: 10:39:51 AM

Exception. Type: <class 'KeyError'> Args: 'private'

Log Extracts

No response

Other Information

No response

AdrianGarside commented 2 months ago

Can you please turn on debug logs and provide those to narrow down the error? And is there a specific activity when it's occurring or just continuously?

AdrianGarside commented 2 months ago

Actually never mind - I see the new code for custom filaments that's trying access the 'private' key.

AdrianGarside commented 2 months ago

Do you have zero custom filaments configured?

Ali229 commented 2 months ago

image I have these custom filaments configured on the slicer, not sure if that's what you're asking.

AdrianGarside commented 2 months ago

https://github.com/greghesp/ha-bambulab/releases/tag/v2.0.22-dev4