Add brightness_step to light.turn_on (#31452)

* Clean up light turn on service

* Add brightness_step to turn_on schema

* Fix import

* Fix imports 2

* Fix RFLink test
This commit is contained in:
Paulus Schoutsen 2020-02-04 16:13:29 -08:00 committed by GitHub
parent e970177eeb
commit c85a7934ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 115 additions and 73 deletions

View file

@ -1,6 +1,7 @@
"""Intents for the light integration."""
import voluptuous as vol
from homeassistant.const import ATTR_ENTITY_ID
from homeassistant.core import HomeAssistant
from homeassistant.helpers import intent
import homeassistant.helpers.config_validation as cv
@ -8,7 +9,6 @@ import homeassistant.util.color as color_util
from . import (
ATTR_BRIGHTNESS_PCT,
ATTR_ENTITY_ID,
ATTR_RGB_COLOR,
DOMAIN,
SERVICE_TURN_ON,