From d0e39c6b7ddbafc82f01f63d9cc200ffc8ea1466 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 27 Feb 2017 05:43:07 +0000 Subject: [PATCH] Site updated at 2017-02-27 05:43:07 UTC --- 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/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 +- .../component_generic_discovery/index.html | 10 +++---- sitemap.xml | 30 +++++++++---------- 24 files changed, 41 insertions(+), 43 deletions(-) diff --git a/atom.xml b/atom.xml index b56533377f..efafeb110c 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 2159d70e01..0ae5cabee0 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index a083f24e16..3823932fc6 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-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 5226cb1128..3f7684406c 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 4951c87693..6716e61b71 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-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 0bff54d6b9..f9adc1822a 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+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 75b559d360..c43b1e3a9f 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-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 9c2ac16204..d86b7c880f 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-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index 1c18966a81..8a0d1eafe4 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 588a52d138..552bb049fb 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 0083013ebe..98ffe0b430 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 3083b5dc76..28a5a4acd6 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index e5cfd62f5e..42bfdef8bf 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 65d97e0c48..6ef463a7d7 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-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+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 fe81fe9a34..3cdfee9e44 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-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index c4e3a85363..e7ae0a543f 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-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index f74b8c7092..8d331a689f 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index e1533fbcc5..0a1f669885 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 8f8dd85b90..224aa25483 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index ee23881241..21351884ef 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-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 8a7394cc94..a5eee299dd 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 66473205cd..29d12f8fd4 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-02-27T05:01:11+00:00 + 2017-02-27T05:40:11+00:00 https://home-assistant.io/ diff --git a/developers/component_generic_discovery/index.html b/developers/component_generic_discovery/index.html index ae5f9dd2c9..11fea63071 100644 --- a/developers/component_generic_discovery/index.html +++ b/developers/component_generic_discovery/index.html @@ -123,14 +123,12 @@ This can be achieved using the load_platform
from homeassistant.helpers.discovery import load_platform
 DOMAIN = 'myflashyhub'
 
-MFH_GLOBAL = None
+DATA_MFH = 'MFH'
 
 def setup(hass, config):
     """Your controller/hub specific code."""
-    
-    global MFH_GLOBAL
-    if MFH_GLOBAL is None:
-        MFH_GLOBAL = SomeObjectToInitialiseGlobal
+    hass.data[DATA_MFH] = SomeObjectToInitialiseGlobal()
+
     #--- snip ---
     load_platform(hass, 'light', DOMAIN)
     load_platform(hass, 'switch', DOMAIN, {'optional': 'arguments'})
@@ -145,7 +143,7 @@ This can be achieved using the load_platform# as passed in above. 'light' will receive discovery_info=None
 def setup_platform(hass, config, add_devices, discovery_info=None):
     """Your switch/light specific code."""
-    # You can now use myflashyhub.MFH_GLOBAL
+    # You can now use hass.data[myflashyhub.DATA_MFH]
 
diff --git a/sitemap.xml b/sitemap.xml index d139855cc6..fcbeaea2bd 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2939,62 +2939,62 @@ https://home-assistant.io/demo/frontend.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00 https://home-assistant.io/demo/index.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00 https://home-assistant.io/static/mdi-demo.html -2017-02-27T05:00:24+00:00 +2017-02-27T05:39:22+00:00