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

Fix does not set supported color modes warning #1362

Closed
kelvinng1 opened this issue Mar 16, 2024 · 2 comments
Closed

Fix does not set supported color modes warning #1362

kelvinng1 opened this issue Mar 16, 2024 · 2 comments
Assignees
Labels
duplicate This issue or pull request already exists
Milestone

Comments

@kelvinng1
Copy link

kelvinng1 commented Mar 16, 2024

Cannot change the device type of an TX switch to light using yaml in configuration.yaml as below:

sonoff:
  devices:
    10011xxxxx:
      device_class: light
      name: backyard_light

An error is captured in the HASS core log:

2024-03-17 00:30:15.811 WARNING (MainThread) [homeassistant.components.light] sonoff.sonoff_10011xxxxx (<class 'custom_components.sonoff.switch.XSwitch'>) does not set supported color modes, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/AlexxIT/SonoffLAN/issues
@AlexxIT AlexxIT added the bug Something isn't working label Apr 9, 2024
@AlexxIT AlexxIT self-assigned this Apr 9, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Apr 10, 2024

2024-04-10 06:40:22.976 WARNING (MainThread) [homeassistant.components.light] sonoff.sonoff_xxx (<class 'custom_components.sonoff.light.XFanLight'>) does not set supported color modes, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/AlexxIT/SonoffLAN/issues

@AlexxIT AlexxIT changed the title Cannot change device type of a switch Fix does not set supported color modes warning Apr 17, 2024
@AlexxIT AlexxIT added this to the v3.7.0 milestone Apr 17, 2024
@AlexxIT AlexxIT added duplicate This issue or pull request already exists and removed bug Something isn't working labels Apr 17, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Apr 17, 2024

#1357

@AlexxIT AlexxIT closed this as completed Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants