diff --git a/atom.xml b/atom.xml index dc69fcaef7..f45ce7f1fb 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 45a4adad4d..77bcf8a4a3 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 1f2f4fd3dc..e58903ee91 100644 --- a/blog/categories/device-tracking/atom.xml +++ b/blog/categories/device-tracking/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Device-Tracking | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index b799124e7b..7d0914a95c 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index e99f5f98d4..48e1fc1d92 100644 --- a/blog/categories/how-to/atom.xml +++ b/blog/categories/how-to/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: How-To | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 05d1753702..6dbf1d743d 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/internet-of-things/atom.xml b/blog/categories/internet-of-things/atom.xml index 3a153154eb..9c3641714e 100644 --- a/blog/categories/internet-of-things/atom.xml +++ b/blog/categories/internet-of-things/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Internet-of-Things | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 210c5fd186..65447b8c0d 100644 --- a/blog/categories/iot-data/atom.xml +++ b/blog/categories/iot-data/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: IoT-Data | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index f6bf941c08..e94324ed0c 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 8203f2261d..379d8c0fdb 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index d136c4d942..6cdcc98100 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 83f5781c12..02906987ac 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index c619471f1f..ff593a4f6b 100644 --- a/blog/categories/presence-detection/atom.xml +++ b/blog/categories/presence-detection/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Presence-Detection | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/public-service-announcement/atom.xml b/blog/categories/public-service-announcement/atom.xml index 8befce871a..6c0df26049 100644 --- a/blog/categories/public-service-announcement/atom.xml +++ b/blog/categories/public-service-announcement/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Public-Service-Announcement | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index bf24ffb74c..ad2629e4fa 100644 --- a/blog/categories/release-notes/atom.xml +++ b/blog/categories/release-notes/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Release-Notes | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index d176b05bf5..8675ea4735 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index e13e5bd31a..b642620aaf 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 7cb8451656..ba30ec48d8 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index d6e33e4185..c18a13e790 100644 --- a/blog/categories/user-stories/atom.xml +++ b/blog/categories/user-stories/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: User-Stories | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 61bdd900c8..632bdfb9de 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index b5e88b8315..c22f2a7029 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2016-10-04T20:26:23+00:00 + 2016-10-04T20:40:54+00:00 https://home-assistant.io/ diff --git a/developers/development_validation/index.html b/developers/development_validation/index.html index 950169a2d8..65e18ed79e 100644 --- a/developers/development_validation/index.html +++ b/developers/development_validation/index.html @@ -89,11 +89,11 @@
-

The configuration.yaml file contains the configuration options for components and platforms. To ensure that the given configuration provided by the user is valid we use voluptuous to check it. Certain entries are optional or could be required for the setup of a platform or a component. Others must be of a definied type or out of an already defined list.

+

The configuration.yaml file contains the configuration options for components and platforms. We use voluptuous to make sure that the configuration provided by the user is valid. Some entries are optional or could be required to set up a platform or a component. Others must be a defined type or from an already-defined list.

-

The goal of testing the configuration is to assure that users have a great experience due to notifications if something is wrong with a platform or component setup before Home Assistant is running.

+

We test the configuration to ensure that users have a great experience and minimize notifications if something is wrong with a platform or component setup before Home Assistant runs.

-

Beside the voluptuous default types are a bunch of custom types available. To get a full overview take a look at the config_validation.py helper.

+

Besides voluptuous default types, many custom types are available. For an overview, take a look at the config_validation.py helper.

  • Types: string, byte, and boolean
  • @@ -103,23 +103,23 @@
  • Misc: template, slug, temperature_unit, latitude, longitude, isfile, sun_event, ensure_list, port, url, and icon
-

To validate plaforms using MQTT there are valid_subscribe_topic and valid_publish_topic present.

+

To validate plaforms using MQTT, valid_subscribe_topic and valid_publish_topic are available.

Some things to keep in mind:

    -
  • Use the constants which are definded in const.py.
  • -
  • Import PLATFORM_SCHEMA from parent component and extend it.
  • -
  • Preferred order is required first, then optional.
  • +
  • Use the constants defined in const.py
  • +
  • Import PLATFORM_SCHEMA from the parent component and extend it
  • +
  • Preferred order is required first and optional second

Snippets

-

This section contains a couple of snippets for the validation we use.

+

This section contains snippets for the validation we use.

-

Default name

+

Default name

-

It’s common to set a default for a sensor if the user is not providing a name to use.

+

It’s common to set a default for a sensor if the user doesn’t provide a name to use.

DEFAULT_NAME = 'Sensor name'
 
@@ -129,9 +129,9 @@
 
-

Limit the values

+

Limit the values

-

In certain cases you want to limit the user’s input to a couple of options.

+

You might want to limit the user’s input to a couple of options.

DEFAULT_METHOD = 'GET'
 
@@ -141,9 +141,9 @@
 
-

Port

+

Port

-

As all port numbers are coming out of the range 1 till 65535.

+

All port numbers are from a range of 1 to 65535.

DEFAULT_PORT = 993
 
@@ -153,9 +153,9 @@
 
-

Lists

+

Lists

-

If a sensor has a pre-defined list of available options it should be tested if the configuration entry matches it.

+

If a sensor has a pre-defined list of available options, test to make sure the configuration entry matches the list.

SENSOR_TYPES = {
     'article_cache': ('Article Cache', 'MB'),
@@ -170,7 +170,6 @@
 
- diff --git a/sitemap.xml b/sitemap.xml index 71a5e694c2..fe78123951 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2113,62 +2113,62 @@ https://home-assistant.io/demo/frontend.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00 https://home-assistant.io/demo/index.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00 https://home-assistant.io/static/mdi-demo.html -2016-10-04T20:25:43+00:00 +2016-10-04T20:40:06+00:00