greghesp / ha-bambulab

A Home Assistant Integration for Bambu Lab Printers
973 stars 85 forks source link

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

Closed maruel closed 1 week ago

maruel commented 2 months ago

Describe the bug

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!

vordenken commented 2 months ago

Came here to report this as well :) +1

ErikvO commented 1 month ago

See this developer post for more information.

ErikvO commented 1 month ago

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