diff --git a/atom.xml b/atom.xml index ba64800505..feaf2632b9 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index 1cc32301f1..ade5977f51 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 8b64644b08..3f963dceef 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index d22bf84a31..7d6d7efa3b 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-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 44d097997e..40fad30e4b 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 9d3660c7e2..9cfd034caf 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-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 6312ea0714..e42cfe25ee 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+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 a469b0d0c0..2898080994 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-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index c0befad5ce..a77a74436a 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-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index 7d114d6c53..32708bdca5 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 470b7d6aa4..996c013000 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 15ff78c54d..3e050489a4 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 6e97ba1713..2c94574643 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 154ae1b083..82f921f638 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 9916dcb6c1..d935cbd53f 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-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+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 9a63ea9d4d..ff460a600f 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-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index aa18c63d80..6a46514240 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-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index d1c2876af7..709a5ab153 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index a9080f71b8..741ee5910c 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 44ade50261..034e65a2d7 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index a3f8c53815..bcc27a9396 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-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 8133c407c6..77ef8b95e9 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index d30ce0cf0e..60b8a6c1ab 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-04-30T20:01:39+00:00 + 2017-04-30T21:17:28+00:00 https://home-assistant.io/ diff --git a/cookbook/python_component_basic_service/index.html b/cookbook/python_component_basic_service/index.html index 0e0de50a53..b87a9db798 100644 --- a/cookbook/python_component_basic_service/index.html +++ b/cookbook/python_component_basic_service/index.html @@ -76,7 +76,7 @@ def setup(hass, config): - """Setup is called when Home Assistant is loading our component.""" + """Set up is called when Home Assistant is loading our component.""" def handle_hello(call): name = call.data.get(ATTR_NAME, DEFAULT_NAME) diff --git a/cookbook/python_component_basic_state/index.html b/cookbook/python_component_basic_state/index.html index 71a4c8532a..6c15780b6e 100644 --- a/cookbook/python_component_basic_state/index.html +++ b/cookbook/python_component_basic_state/index.html @@ -129,7 +129,7 @@ The component will only write a log message. Keep in mind for later that you hav DEFAULT_TEXT = 'No text!' def setup(hass, config): - """Setup the Hello State component. """ + """Set up the Hello State component. """ # Get the text from the configuration. Use DEFAULT_TEXT if no name is provided. text = config[DOMAIN].get(CONF_TEXT, DEFAULT_TEXT) diff --git a/cookbook/python_component_mqtt_basic/index.html b/cookbook/python_component_mqtt_basic/index.html index 03bc306ac1..574a660f6c 100644 --- a/cookbook/python_component_mqtt_basic/index.html +++ b/cookbook/python_component_mqtt_basic/index.html @@ -74,7 +74,7 @@ This example requires you to have the MQTT component
import homeassistant.loader as loader
 
 # The domain of your component. Should be equal to the name of your component.
-DOMAIN = "hello_mqtt"
+DOMAIN = 'hello_mqtt'
 
 # List of component names (string) your component depends upon.
 DEPENDENCIES = ['mqtt']
@@ -85,14 +85,14 @@ This example requires you to have the MQTT component
 
 
 def setup(hass, config):
-    """Setup the Hello MQTT component."""
+    """Set up the Hello MQTT component."""
     mqtt = loader.get_component('mqtt')
     topic = config[DOMAIN].get('topic', DEFAULT_TOPIC)
     entity_id = 'hello_mqtt.last_message'
 
     # Listener to be called when we receive a message.
     def message_received(topic, payload, qos):
-        """A new MQTT message has been received."""
+        """Handle new MQTT messages."""
         hass.states.set(entity_id, payload)
 
     # Subscribe our listener to a topic.
diff --git a/cookbook/python_component_simple_alarm/index.html b/cookbook/python_component_simple_alarm/index.html
index 791936fc2e..9f3ccaf55f 100644
--- a/cookbook/python_component_simple_alarm/index.html
+++ b/cookbook/python_component_simple_alarm/index.html
@@ -89,35 +89,35 @@
 from homeassistant.helpers.event import track_state_change
 from homeassistant.const import STATE_ON, STATE_OFF, STATE_HOME, STATE_NOT_HOME
 
-DOMAIN = "simple_alarm"
+_LOGGER = logging.getLogger(__name__)
+
+DOMAIN = 'simple_alarm"'
 
 DEPENDENCIES = ['group', 'device_tracker', 'light']
 
 # Attribute to tell which light has to flash when a known person comes home
 # If omitted will flash all.
-CONF_KNOWN_LIGHT = "known_light"
+CONF_KNOWN_LIGHT = 'known_light'
 
 # Attribute to tell which light has to flash when an unknown person comes home
 # If omitted will flash all.
-CONF_UNKNOWN_LIGHT = "unknown_light"
+CONF_UNKNOWN_LIGHT = 'unknown_light'
 
 # Services to test the alarms
-SERVICE_TEST_KNOWN_ALARM = "test_known"
-SERVICE_TEST_UNKNOWN_ALARM = "test_unknown"
+SERVICE_TEST_KNOWN_ALARM = 'test_known'
+SERVICE_TEST_UNKNOWN_ALARM = 'test_unknown'
 
 
 def setup(hass, config):
-    """ Sets up the simple alarms. """
-    logger = logging.getLogger(__name__)
-
+    """Set up the simple alarms."""
     light_ids = []
 
     for conf_key in (CONF_KNOWN_LIGHT, CONF_UNKNOWN_LIGHT):
         light_id = config[DOMAIN].get(conf_key, light.ENTITY_ID_ALL_LIGHTS)
 
         if hass.states.get(light_id) is None:
-            logger.error(
-                'Light id %s could not be found in state machine', light_id)
+            _LOGGER.error(
+                "Light id %s could not be found in state machine", light_id)
 
             return False
 
@@ -127,7 +127,7 @@
     known_light_id, unknown_light_id = light_ids
 
     if hass.states.get(device_tracker.ENTITY_ID_ALL_DEVICES) is None:
-        logger.error('No devices are being tracked, cannot setup alarm')
+        _LOGGER.error("No devices are being tracked, cannot setup alarm")
 
         return False
 
@@ -152,7 +152,7 @@
         DOMAIN, SERVICE_TEST_UNKNOWN_ALARM, lambda call: unknown_alarm())
 
     def unknown_alarm_if_lights_on(entity_id, old_state, new_state):
-        """ Called when a light has been turned on. """
+        """Called when a light has been turned on."""
         if not device_tracker.is_on(hass):
             unknown_alarm()
 
@@ -161,7 +161,7 @@
         unknown_alarm_if_lights_on, STATE_OFF, STATE_ON)
 
     def ring_known_alarm(entity_id, old_state, new_state):
-        """ Called when a known person comes home. """
+        """Called when a known person comes home."""
         if light.is_on(hass, known_light_id):
             known_alarm()
 
diff --git a/developers/platform_example_light/index.html b/developers/platform_example_light/index.html
index 0b0401e274..4e438b178f 100644
--- a/developers/platform_example_light/index.html
+++ b/developers/platform_example_light/index.html
@@ -114,13 +114,14 @@
 
     # Verify that passed in configuration works
     if not hub.is_valid_login():
-        _LOGGER.error('Could not connect to AwesomeLight hub')
+        _LOGGER.error("Could not connect to AwesomeLight hub")
         return False
 
     # Add devices
     add_devices(AwesomeLight(light) for light in hub.lights())
 
 
+
 class AwesomeLight(Light):
     """Representation of an Awesome Light."""
 
@@ -138,7 +139,7 @@
 
     @property
     def brightness(self):
-        """Brightness of the light (an integer in the range 1-255).
+        """Return the brightness of the light.
 
         This method is optional. Removing it indicates to Home Assistant
         that brightness is not supported for this light.
diff --git a/developers/platform_example_sensor/index.html b/developers/platform_example_sensor/index.html
index 6d87e98825..22804ca3f9 100644
--- a/developers/platform_example_sensor/index.html
+++ b/developers/platform_example_sensor/index.html
@@ -69,7 +69,7 @@
   

This is a minimum implementation of a platform for the sensor component.

Installation

Copy the code below and create it as a file in <config_dir>/custom_components/sensor/example.py.

-

Add the following to your configuration.yaml:

+

Add the following to your configuration.yaml file:

# Example configuration.yaml entry
 sensor:
   platform: example
diff --git a/sitemap.xml b/sitemap.xml
index 8a16e0b692..17f9d9c0f3 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -3216,62 +3216,62 @@
 
 
 https://home-assistant.io/demo/frontend.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00
 
 
 https://home-assistant.io/demo/index.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-history.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-map.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00
 
 
 https://home-assistant.io/googlef4f3693c209fe788.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00
 
 
 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00
 
 
 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00
 
 
 https://home-assistant.io/static/mdi-demo.html
-2017-04-30T19:59:15+00:00
+2017-04-30T21:16:38+00:00