Reduce flux_led light turn on complexity (#60139)

This commit is contained in:
J. Nick Koston 2021-11-23 15:23:38 -06:00 committed by GitHub
parent 24779dea3b
commit ce369bb336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 41 deletions

View file

@ -1098,11 +1098,3 @@ async def test_addressable_light(hass: HomeAssistant) -> None:
bulb.async_turn_on.assert_called_once()
bulb.async_turn_on.reset_mock()
await async_mock_device_turn_on(hass, bulb)
with pytest.raises(ValueError):
await hass.services.async_call(
LIGHT_DOMAIN,
"turn_on",
{ATTR_ENTITY_ID: entity_id, ATTR_BRIGHTNESS: 100},
blocking=True,
)