diff --git a/atom.xml b/atom.xml index 49fc22d6fb..2948477506 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
Home Assistant uses SQLAlchemy as Object Relational Mapper (ORM). This means that you can now use any SQL backend for the recorder that is supported by SQLAlchemy, like MySQL, MariaDB, or PostgreSQL.
-The default database engine is SQLite which doesn’t require any configuration. The database is stored in your Home Assistant configuration directory (.homeassistant
) and called home-assistant.db
.
The default database engine is SQLite which doesn’t require any configuration. The database is stored in your Home Assistant configuration directory (.homeassistant
) and called home-assistant_v2.db
.
To setup the recorder
component in your installation, add the following to your configuration.yaml
file:
New controller or hub components often need to add platforms in sub-components (i.e. Lights & Switches) without additional configuration.
-This can be achieved using the homeassistant.components.discovery.load_platform
method:
load_platform
or async_load_platform
methods from homeassistant.helpers.discovery
:
-def load_platform(hass, component, platform, info=None, hass_config=None)
+def load_platform(hass, component, platform, discovered=None, hass_config=None)
-From more info on how this works, refer to the load_platform method.
+From more info on how this works, refer to the load_platform method.
Example
@@ -120,7 +120,7 @@ This can be achieved using the homeassistant.com
In the hub component myflashyhub.py
you can call your light and switch components. To pass any non-serializable information to the platforms in the sub-component, you can use a global variable.
-from homeassistant.components.discovery import load_platform
+from homeassistant.helpers.discovery import load_platform
DOMAIN = 'myflashyhub'
MFH_GLOBAL = None
@@ -158,10 +158,6 @@ This can be achieved using the homeassistant.com
-
-In the past, this was achieved by adding your component to the DISCOVERY_PLATFORMS
in the target sub-component. Generic discovery through load_platform()
allows you to load any sub-component, including custom components, without changing the sub-component.
-
-
diff --git a/sitemap.xml b/sitemap.xml
index bafc785923..d914be7ff3 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -2737,62 +2737,62 @@
https://home-assistant.io/demo/frontend.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:47+00:00
https://home-assistant.io/demo/index.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:47+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:47+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:47+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:47+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:47+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:47+00:00
https://home-assistant.io/demo/panels/ha-panel-history.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:47+00:00
https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:47+00:00
https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:47+00:00
https://home-assistant.io/demo/panels/ha-panel-map.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:47+00:00
https://home-assistant.io/googlef4f3693c209fe788.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:48+00:00
https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:48+00:00
https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:48+00:00
https://home-assistant.io/static/mdi-demo.html
-2017-02-08T17:33:23+00:00
+2017-02-08T20:03:48+00:00