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: correct supported features type in Tapo light entity #827

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shlendakh
Copy link

This pull request fixes a TypeError occurring when Home Assistant expects supported_features to be iterable, but receives an integer instead. The issue has been resolved by ensuring that supported_features is always a set, even when no effects are supported.

I had the same issue as is #825, but I'm owner of Light Bulb L510, so for some reasons code changes from PR #826 didn't work for me, after more tweaking I come to this solution.

Tested with Home Assistant version:

  • Core: 2025.1.0
  • Supervisor: 2024.12.3
  • Operating System: 14.1
  • User Interface: 20250103.0

Light Bulb: Tapo L510 Series (software 1.3.1)

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

Successfully merging this pull request may close these issues.

1 participant