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

Multiple issues: Blocking operations and missing color mode reporting #212

Open
Horley900 opened this issue Jan 13, 2025 · 1 comment
Open

Comments

@Horley900
Copy link

Title: Multiple issues: Blocking operations and missing color mode reporting

Issues Overview

  1. Missing color mode reporting (Critical - will break in HA 2025.3)
  2. Blocking SSL verification calls
  3. Blocking file operations
  4. Color mode compatibility warning

Detailed Description

1. Color Mode Reporting Issue

Error message:
light.roof_lights_2 (<class 'custom_components.govee.light.GoveeLightEntity'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3

This is critical as it will break functionality in Home Assistant Core 2025.3.

2. Blocking SSL Verification Call

Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7f041da676e0>, '/usr/local/lib/python3.13/site-packages/certifi/cacert.pem', None, None) inside the event loop by custom integration 'govee' at custom_components/govee/init.py, line 53: hub = await Govee.create()

3. Blocking File Operations

Detected blocking call to open with args ('/config/govee_learning.yaml',) inside the event loop by custom integration 'govee' at custom_components/govee/learning_storage.py, line 28: learned_dict = load_yaml(self._config_dir + LEARNING_STORAGE_YAML)

Environment

  • Home Assistant Core version: 2025.1.0
  • Govee Integration version: 2025.1.1
  • Python version: 3.13 (based on error logs)
  • Device model: H705B2D1UK
  • Affected entity: light.roof_lights_2

Expected Behavior

  1. Light entities should report their color mode capabilities
  2. File operations should be handled asynchronously
  3. SSL verification should be handled asynchronously

Current Behavior

  1. Light entities do not report color mode
  2. Blocking calls are being made in the event loop
  3. File operations are blocking

Additional Information

These issues were detected in the logs during normal operation of the integration. The most critical issue is the missing color mode reporting as it will cause compatibility issues with Home Assistant Core 2025.3.

@ThePieringerKidz
Copy link

Hello i have the same issues

do you know when the issues came?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants