Don't advertise switch devices as dimmable lights (#37978)

This issue has been corrected and then reverted multiple times.
It seems that the core issue was a casing one (On/off vs On/Off) ; for better
matching with a real Hue hub, also add the productname.

Tested to work with echo 2 and echo 5.
This commit is contained in:
Jean-Yves Avenard authored and GitHub committed 2020-07-19 22:33:56 -10:00
1 parent 6ea5c8aed9
commit 36ee9ff58f
2 files changed
+6 -7

No files matched your search

@@ -252,7 +252,7 @@ async def test_light_without_brightness_supported(hass_hue, hue_client):
)
assert light_without_brightness_json["state"][HUE_API_STATE_ON] is True
assert light_without_brightness_json["type"] == "Dimmable light"
assert light_without_brightness_json["type"] == "On/Off light"
async def test_light_without_brightness_can_be_turned_off(hass_hue, hue_client):