Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] ha-bambulab v2.0.22 generates warnings in HA 2024.8.3 #585

Open
maruel opened this issue Sep 2, 2024 · 3 comments
Open

[Bug] ha-bambulab v2.0.22 generates warnings in HA 2024.8.3 #585

maruel opened this issue Sep 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@maruel
Copy link

maruel commented Sep 2, 2024

Describe the bug

  • Incorrect casing in FanEntityFeature, turn_on instead of TURN_ON
  • Fan Entities are not named, so logs is as "None"
  • Need to start using async_forward_entry_setups() instead of async_forward_entry_setup() at custom_components/bambu_lab/coordinator.py, line 225 before June 2025 (2025.6).

To Reproduce

Configure ha-bambulab v2.0.22 in HA 2024.8.3 with a X1C. Look at warning level logs in HA.

Expected Behaviour

No warnings in HA's logs.

What device are you using?

X1C

Diagnostic Output

See logs.

Log Extracts

2024-09-02 09:53:15.852 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-02 09:53:15.852 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-02 09:53:15.852 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-02 09:53:15.852 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-02 09:53:15.852 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-02 09:53:15.852 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-02 09:53:16.245 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'bambu_lab' calls async_forward_entry_setup for integration, bambu_lab with title: 00M00A282504424 and entry_id: c0fd24a458b472e3ccadf3327964b83f, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/bambu_lab/coordinator.py, line 225: await self.hass.config_entries.async_forward_entry_setup(self.config_entry, Platform.SENSOR), please create a bug report at https://github.com/greghesp/ha-bambulab/issues

Other Information

Thanks a lot for this integration, it's amazing!

@maruel maruel added the bug Something isn't working label Sep 2, 2024
@vordenken
Copy link

Came here to report this as well :) +1

@ErikvO
Copy link

ErikvO commented Oct 4, 2024

See this developer post for more information.

@ErikvO
Copy link

ErikvO commented Oct 4, 2024

The FanEntity part of this issue is a duplicate of #573 and fixed in #583
The async_forward_entry_setup part of this issue is fixed in #596

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants