1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Use constants from const.py (#21068)

* Use constants from const.py

* Fix lint issues
This commit is contained in:
Fabian Affolter
2019-02-19 14:09:06 +01:00
committed by GitHub
parent 9d3eaada27
commit 2d2c6cf4a1
21 changed files with 105 additions and 188 deletions

View File

@@ -3,11 +3,10 @@ import voluptuous as vol
from homeassistant.components.knx import ATTR_DISCOVER_DEVICES, DATA_KNX
from homeassistant.components.scene import CONF_PLATFORM, Scene
from homeassistant.const import CONF_NAME
from homeassistant.const import CONF_ADDRESS, CONF_NAME
from homeassistant.core import callback
import homeassistant.helpers.config_validation as cv
CONF_ADDRESS = 'address'
CONF_SCENE_NUMBER = 'scene_number'
DEFAULT_NAME = 'KNX SCENE'