Skip to content

Commit 84543fe

Browse files
committed
Site updated at 2016-08-15 16:46:09 UTC
1 parent 9f234a8 commit 84543fe

File tree

22 files changed

+51
-35
lines changed

22 files changed

+51
-35
lines changed

atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Home Assistant]]></title>
55
<link href="https://home-assistant.io/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/community/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Community | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/community/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/device-tracking/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Device-Tracking | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/device-tracking/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/esp8266/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: ESP8266 | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/esp8266/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/how-to/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: How-To | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/how-to/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/ibeacons/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: iBeacons | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/ibeacons/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/internet-of-things/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Internet-of-Things | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/internet-of-things/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/iot-data/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: IoT-Data | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/iot-data/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/mqtt/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: MQTT | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/mqtt/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/organisation/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Organisation | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/organisation/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/owntracks/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: OwnTracks | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/owntracks/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/presence-detection/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Presence-Detection | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/presence-detection/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/public-service-announcement/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Public-Service-Announcement | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/public-service-announcement/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/release-notes/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Release-Notes | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/release-notes/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/survey/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Survey | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/survey/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/talks/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Talks | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/talks/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/technology/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Technology | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/technology/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/user-stories/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: User-Stories | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/user-stories/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/video/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Video | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/video/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/website/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Website | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/website/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-15T04:35:51+00:00</updated>
7+
<updated>2016-08-15T16:45:11+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

developers/development_validation/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ <h3><a class="title-link" name="snippets" href="#snippets"></a> Snippets</h3>
117117

118118
<h3><a class="title-link" name="default-name" href="#default-name"></a> Default name</h3>
119119

120+
<p>It’s common to set a default for a sensor if the user is not providing a name to use.</p>
121+
120122
<div class="highlighter-coderay"><div class="CodeRay">
121123
<div class="code"><pre>DEFAULT_NAME = <span class="string"><span class="delimiter">'</span><span class="content">Sensor name</span><span class="delimiter">'</span></span>
122124

@@ -127,6 +129,20 @@ <h3><a class="title-link" name="default-name" href="#default-name"></a> Default
127129
</div>
128130
</div>
129131

132+
<h3><a class="title-link" name="limit-the-values" href="#limit-the-values"></a> Limit the values</h3>
133+
134+
<p>In certain cases you want to limit the user’s input to a couple of options.</p>
135+
136+
<div class="highlighter-coderay"><div class="CodeRay">
137+
<div class="code"><pre>DEFAULT_METHOD = <span class="string"><span class="delimiter">'</span><span class="content">GET</span><span class="delimiter">'</span></span>
138+
139+
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
140+
...
141+
vol.Optional(CONF_METHOD, default=DEFAULT_METHOD): vol.In([<span class="string"><span class="delimiter">'</span><span class="content">POST</span><span class="delimiter">'</span></span>, <span class="string"><span class="delimiter">'</span><span class="content">GET</span><span class="delimiter">'</span></span>]),
142+
</pre></div>
143+
</div>
144+
</div>
145+
130146
<h3><a class="title-link" name="port" href="#port"></a> Port</h3>
131147

132148
<p>As all port numbers are coming out of the range 1 till 65535 a range check should be performed.</p>

sitemap.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,62 +2081,62 @@
20812081
</url>
20822082
<url>
20832083
<loc>https://home-assistant.io/demo/frontend.html</loc>
2084-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2084+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
20852085
</url>
20862086
<url>
20872087
<loc>https://home-assistant.io/demo/index.html</loc>
2088-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2088+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
20892089
</url>
20902090
<url>
20912091
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-event.html</loc>
2092-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2092+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
20932093
</url>
20942094
<url>
20952095
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-info.html</loc>
2096-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2096+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
20972097
</url>
20982098
<url>
20992099
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-service.html</loc>
2100-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2100+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
21012101
</url>
21022102
<url>
21032103
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-state.html</loc>
2104-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2104+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
21052105
</url>
21062106
<url>
21072107
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-template.html</loc>
2108-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2108+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
21092109
</url>
21102110
<url>
21112111
<loc>https://home-assistant.io/demo/panels/ha-panel-history.html</loc>
2112-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2112+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
21132113
</url>
21142114
<url>
21152115
<loc>https://home-assistant.io/demo/panels/ha-panel-iframe.html</loc>
2116-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2116+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
21172117
</url>
21182118
<url>
21192119
<loc>https://home-assistant.io/demo/panels/ha-panel-logbook.html</loc>
2120-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2120+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
21212121
</url>
21222122
<url>
21232123
<loc>https://home-assistant.io/demo/panels/ha-panel-map.html</loc>
2124-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2124+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
21252125
</url>
21262126
<url>
21272127
<loc>https://home-assistant.io/googlef4f3693c209fe788.html</loc>
2128-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2128+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
21292129
</url>
21302130
<url>
21312131
<loc>https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html</loc>
2132-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2132+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
21332133
</url>
21342134
<url>
21352135
<loc>https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html</loc>
2136-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2136+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
21372137
</url>
21382138
<url>
21392139
<loc>https://home-assistant.io/static/mdi-demo.html</loc>
2140-
<lastmod>2016-08-15T04:35:11+00:00</lastmod>
2140+
<lastmod>2016-08-15T16:44:30+00:00</lastmod>
21412141
</url>
21422142
</urlset>

0 commit comments

Comments
 (0)