diff --git a/atom.xml b/atom.xml index d83682e02e..17fb4de29c 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index 68484760b8..2642691ab3 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index fd94861e74..8ece1a4b4b 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 976b6075bc..ab8baa0264 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]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 75e3486d05..537decec38 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 88b524e891..e9719fae27 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]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 5cd2ea9d64..3b44d707fa 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+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 c8e438cd13..8b037b35d6 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]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 3a6329bf39..3bf9874163 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]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index 07b8ad5e5d..d6519dcaaa 100644 --- a/blog/categories/media/atom.xml +++ b/blog/categories/media/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Media | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index 930636f8c8..8c44f44d27 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index bda76bb408..748e03d515 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 968fb39b30..e1e9e889ce 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index a639ae8d89..34812450ac 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index b4ebf9f555..12dd276342 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 43099471f0..df8049b28b 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]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+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 81b8928333..38e448b692 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]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 503128c2b5..5d7c755b9d 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]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 9f2eacb3f8..a34a52ef9e 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 71b7602b2d..470bb7383a 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index c2039625ad..d7cd975509 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 41811087b0..0c840b1613 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]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 62867b53ac..fd9759f38b 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index ba7095afaa..55ae2484cf 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2018-01-04T22:48:39+00:00 + 2018-01-05T04:49:57+00:00 https://home-assistant.io/ diff --git a/developers/code_review_component/index.html b/developers/code_review_component/index.html index 049856cfd9..7373aedd1e 100644 --- a/developers/code_review_component/index.html +++ b/developers/code_review_component/index.html @@ -78,21 +78,22 @@

Not all existing platforms follow the requirements in this checklist. This cannot be used as a reason to not follow them!

-

Requirements

+

1. Requirements

  1. Requirement version pinned: REQUIREMENTS = ['phue==0.8.1']
  2. We no longer want requirements hosted on GitHub. Please upload to PyPi.
  3. Requirements should only be imported inside functions. This is necessary because requirements are installed on the fly.
-

Configuration

+

2. Configuration

  1. Voluptuous schema present for config validation
  2. Default parameters specified in voluptuous schema, not in setup(…)
  3. Schema using as many generic config keys as possible from homeassistant.const
  4. -
  5. If having platforms, have a PLATFORM_SCHEMA, otherwise CONFIG_SCHEMA.
  6. -
  7. If PLATFORM_SCHEMA, import base from homeassistant.helpers.config_validation
  8. +
  9. If your component has platforms, define a PLATFORM_SCHEMA instead of a CONFIG_SCHEMA.
  10. +
  11. If using a PLATFORM_SCHEMA to be used with EntityComponent, import base from homeassistant.helpers.config_validation
  12. +
  13. Never depend on users adding things to customize to configure behavior inside your component.
-

Component/platform communication

+

3. Component/platform communication

  1. If you need to share global data with platforms, use the dictionary hass.data. hass.data[DATA_XY] while XY is the component is preferred over hass.data[DOMAIN].
  2. If the component fetches data that causes it’s related platform entities to update, you can notify them using the dispatcher code in homeassistant.helpers.dispatcher.
  3. diff --git a/developers/code_review_platform/index.html b/developers/code_review_platform/index.html index 2a312486c3..eb56e121d4 100644 --- a/developers/code_review_platform/index.html +++ b/developers/code_review_platform/index.html @@ -90,12 +90,11 @@ Not all existing platforms follow the requirements in this checklist. This canno

3. Configuration

    -
  1. Volutpuous schema present for config validation
  2. +
  3. Voluptuous schema present for config validation
  4. Voluptuous schema extends schema from component
    (e.g. light.hue.PLATFORM_SCHEMA extends light.PLATFORM_SCHEMA)
  5. Default parameters specified in voluptuous schema, not in setup_platform(…)
  6. -
  7. Schema using as many generic config keys as possible from homeassistant.const
  8. -
-
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,
     })
     
    -
    +
  • + +
  • Never depend on users adding things to customize to configure behavior inside your platform.
  • +

    4. Setup Platform

    1. Test if passed in info (user/pass/host etc.) works.
    2. diff --git a/sitemap.xml b/sitemap.xml index 00a26ae1df..e680a44537 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -3826,7 +3826,7 @@ https://home-assistant.io/components/switch.hook/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/cookbook/automation_for_rainy_days/ @@ -4506,99 +4506,99 @@ https://home-assistant.io/docs/autostart/init.d/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/api/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/configuration/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/installation/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/operation/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/reboot/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/running/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/updating/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/windows/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/certificates/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/hadashboard/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/hass-configurator/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/ios/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/nginx/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/notebooks/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/scenegen/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/ecosystem/synology/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/tools/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/tools/dev-tools/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/tools/hass/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/docs/tools/scripts/ -2018-01-04T22:48:39+00:00 +2018-01-05T04:49:57+00:00 https://home-assistant.io/faq/after-upgrading/ @@ -5734,62 +5734,62 @@ https://home-assistant.io/demo/frontend.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:17+00:00 https://home-assistant.io/demo/index.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:17+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:17+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:17+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:17+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:17+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:17+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:17+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:17+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:17+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:17+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:17+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:18+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:18+00:00 https://home-assistant.io/static/mdi-demo.html -2018-01-04T22:47:54+00:00 +2018-01-05T04:49:18+00:00