Simplify color mode logic in Tuya light (#110327)

* Simplify color mode logic in Tuya light

* Remove exclusion from LightEntity.__should_report_light_issue

* Fix test
This commit is contained in:
Erik Montnemery 2024-03-06 18:28:12 +01:00 committed by GitHub
parent c8f39911cc
commit 770e48d512
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 20 additions and 15 deletions

View file

@ -2791,7 +2791,7 @@ def test_report_invalid_color_mode(
(
light.ColorMode.ONOFF,
{light.ColorMode.ONOFF, light.ColorMode.BRIGHTNESS},
"tuya", # We don't log issues for tuya
"philips_js", # We don't log issues for philips_js
False,
),
],