diff --git a/atom.xml b/atom.xml index d83682e02e..17fb4de29c 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
Not all existing platforms follow the requirements in this checklist. This cannot be used as a reason to not follow them!
-REQUIREMENTS = ['phue==0.8.1']
setup(…)
homeassistant.const
PLATFORM_SCHEMA
, otherwise CONFIG_SCHEMA
.PLATFORM_SCHEMA
, import base from homeassistant.helpers.config_validation
PLATFORM_SCHEMA
instead of a CONFIG_SCHEMA
.PLATFORM_SCHEMA
to be used with EntityComponent
, import base from homeassistant.helpers.config_validation
customize
to configure behavior inside your component.hass.data
. hass.data[DATA_XY]
while XY
is the component is preferred over hass.data[DOMAIN]
.homeassistant.helpers.dispatcher
.light.hue.PLATFORM_SCHEMA
extends light.PLATFORM_SCHEMA
)setup_platform(…)
homeassistant.const
import voluptuous as vol
+ Your PLATFORM_SCHEMA
should use as many generic config keys as possible from homeassistant.const
+ import voluptuous as vol
from homeassistant.const import CONF_FILENAME, CONF_HOST
from homeassistant.components.light import PLATFORM_SCHEMA
@@ -107,11 +106,14 @@ Not all existing platforms follow the requirements in this checklist. This canno
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(CONF_HOST): cv.string,
vol.Optional(CONF_ALLOW_UNREACHABLE,
- default=DEFAULT_UNREACHABLE): cv.boolean,
+ default=DEFAULT_UNREACHABLE): cv.boolean,
vol.Optional(CONF_FILENAME): cv.string,
})
-
+
customize
to configure behavior inside your platform.