From 453538c1f125f4d0e3d2a8597a425b532978495d Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 29 Jul 2017 06:54:10 +0000 Subject: [PATCH] Site updated at 2017-07-29 06:54:10 UTC --- atom.xml | 2 +- blog/categories/announcements/atom.xml | 2 +- blog/categories/community/atom.xml | 2 +- blog/categories/device-tracking/atom.xml | 2 +- blog/categories/esp8266/atom.xml | 2 +- blog/categories/how-to/atom.xml | 2 +- blog/categories/ibeacons/atom.xml | 2 +- blog/categories/internet-of-things/atom.xml | 2 +- blog/categories/iot-data/atom.xml | 2 +- blog/categories/media/atom.xml | 2 +- blog/categories/merchandise/atom.xml | 2 +- blog/categories/micropython/atom.xml | 2 +- blog/categories/mqtt/atom.xml | 2 +- blog/categories/organisation/atom.xml | 2 +- blog/categories/owntracks/atom.xml | 2 +- blog/categories/presence-detection/atom.xml | 2 +- .../public-service-announcement/atom.xml | 2 +- blog/categories/release-notes/atom.xml | 2 +- blog/categories/survey/atom.xml | 2 +- blog/categories/talks/atom.xml | 2 +- blog/categories/technology/atom.xml | 2 +- blog/categories/user-stories/atom.xml | 2 +- blog/categories/video/atom.xml | 2 +- blog/categories/website/atom.xml | 2 +- developers/code_review_component/index.html | 2 +- developers/code_review_platform/index.html | 31 +++++++++++-------- sitemap.xml | 30 +++++++++--------- 27 files changed, 58 insertions(+), 53 deletions(-) diff --git a/atom.xml b/atom.xml index 58a2ba0241..7f97670864 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index 77aca51bff..3abb45a819 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 8470e10866..d892433e0f 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index ce80cf53d2..3aed4098ba 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]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 952e24cbd6..2c501b91d4 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 2f74197fb5..c7cfe5407b 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]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 8f58c17491..11a122c4da 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+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 1bad6cd7bc..c8bb3c1279 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]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index a3843d4739..b9ff455c70 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]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index d36072d3b6..fd6258659e 100644 --- a/blog/categories/media/atom.xml +++ b/blog/categories/media/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Media | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index 209b2015c3..5b424c45b2 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index cc50bf600a..afc4345179 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 33fa27112a..37b7a2e7ca 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 89f7cd33db..371338f51d 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 88734a5d20..310674aa29 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index b6b14ac693..9382723bdb 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]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+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 876f5e5e4f..71e1a744e0 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]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index ce877e7692..059c1365a0 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]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 197d5f9002..877126e5e3 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index b94f8f659a..236d11bd20 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 411f55fe29..f61f7f532c 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index e454d393a4..2c48acc387 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]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index c90259a315..0b654889d4 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 076753d021..94de099511 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-07-29T04:04:40+00:00 + 2017-07-29T06:45:17+00:00 https://home-assistant.io/ diff --git a/developers/code_review_component/index.html b/developers/code_review_component/index.html index 67098a538d..ab472d688b 100644 --- a/developers/code_review_component/index.html +++ b/developers/code_review_component/index.html @@ -102,7 +102,7 @@

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. -
  3. If the component fetches data that causes related platform entities to update,
  4. +
  5. 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.
diff --git a/developers/code_review_platform/index.html b/developers/code_review_platform/index.html index 5620c4007e..d6e1282c7e 100644 --- a/developers/code_review_platform/index.html +++ b/developers/code_review_platform/index.html @@ -75,22 +75,14 @@

A checklist of things to do when you’re adding a new platform.

+

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

1. Requirements

    -
  1. Requirement version pinned: REQUIREMENTS = ['phue==0.8.1']
  2. -
  3. If requirement hosted on GitHub: -
      -
    • Point at a zip archive of a release tag or commit SHA.
    • -
    • Add version found in zip-archive as hash to URL.
    • -
    -
  4. +
  5. Requirement version should be pinned: REQUIREMENTS = ['phue==0.8.1']
  6. +
  7. We no longer want requirements hosted on GitHub. Please upload to PyPi.
-
REQUIREMENTS = [
-    'http://github.com/technicalpickles/python-nest'
-    '/archive/e6c9d56a8df455d4d7746389811f2c1387e8cb33.zip'
-    '#python-nest==3.0.3']
-
-

2. Dependencies

  1. If you depend on a component for the connection, add it to your dependencies: DEPENDENCIES = ['nest']
  2. @@ -131,6 +123,19 @@
  3. Do not call update() in constructor, use add_devices(devices, True) instead.
  4. Do not do any I/O inside properties. Cache values inside update() instead.
+

6. Communication with devices/services

+
    +
  1. All API specific code has to be part of a third party library hosted on PyPi. Home Assistant should only interact with objects and not make direct calls to the API.
  2. +
+
# bad
+status = requests.get(url('/status'))
+
+# good
+from phue import Bridge
+bridge = Bridge()
+status = bridge.status()
+
+