From f18928d85b17e3b008bdd36d4cd51499f5ef56b4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Sep 2015 19:23:24 +0200 Subject: [PATCH] Update docstring (config file) and attempt to honor PEP0257 --- config/custom_components/example.py | 2 +- config/custom_components/hello_world.py | 4 +--- config/custom_components/mqtt_example.py | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/config/custom_components/example.py b/config/custom_components/example.py index 5bfb03353e0..ee7f18f437a 100644 --- a/config/custom_components/example.py +++ b/config/custom_components/example.py @@ -12,7 +12,7 @@ Example component to target an entity_id to: Configuration: To use the Example custom component you will need to add the following to -your config/configuration.yaml +your configuration.yaml file. example: target: TARGET_ENTITY diff --git a/config/custom_components/hello_world.py b/config/custom_components/hello_world.py index 96d9a788b6b..a3d4ce762bb 100644 --- a/config/custom_components/hello_world.py +++ b/config/custom_components/hello_world.py @@ -1,16 +1,14 @@ """ custom_components.hello_world ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Implements the bare minimum that a component should implement. Configuration: To use the hello_word component you will need to add the following to your -config/configuration.yaml +configuration.yaml file. hello_world: - """ # The domain of your component. Should be equal to the name of your component diff --git a/config/custom_components/mqtt_example.py b/config/custom_components/mqtt_example.py index 5b54226cb7c..98e16b6bfa9 100644 --- a/config/custom_components/mqtt_example.py +++ b/config/custom_components/mqtt_example.py @@ -1,7 +1,6 @@ """ custom_components.mqtt_example ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Shows how to communicate with MQTT. Follows a topic on MQTT and updates the state of an entity to the last message received on that topic. @@ -12,7 +11,7 @@ example payload {"new_state": "some new state"}. Configuration: To use the mqtt_example component you will need to add the following to your -config/configuration.yaml +configuration.yaml file. mqtt_example: topic: home-assistant/mqtt_example