diff --git a/developers/development_states/index.html b/developers/development_states/index.html
index 869e383238..3114c5228a 100644
--- a/developers/development_states/index.html
+++ b/developers/development_states/index.html
@@ -174,13 +174,16 @@ The component will only write a log message. Keep in mind for later that you hav
-In order to expose attributes of your component, you will need to define a method called state_attributes
which will return a dictionary of attributes:
+In order to expose attributes for a platform, you will need to define a property called device_state_attributes
on the entity class, which will return a dictionary of attributes:
@property
-def state_attributes(self):
- """Return the attributes of the entity."""
+def device_state_attributes(self):
+ """Return device specific state attributes."""
return self._attributes
+
+Entities also have a similar property state_attributes
, which normally doesn’t need to be defined by new platforms. This property is used by base components to add standard sets of attributes to a state. Example: The light component uses state_attributes
to add brightness to the state dictionary. If you are designing a new component, you should define state_attributes
instead.
+
To get your component included in the Home Assistant releases, follow the steps described in the Submitting improvements section. Basically you only need to move your component in the homeassistant/component/
directory of your fork and create a Pull Request.
diff --git a/sitemap.xml b/sitemap.xml
index 58f51eb89a..3a7078caaf 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -3542,7 +3542,7 @@
https://home-assistant.io/components/switch.hook/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/cookbook/automation_for_rainy_days/
@@ -4206,99 +4206,99 @@
https://home-assistant.io/docs/autostart/init.d/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/api/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/configuration/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/installation/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/operation/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/reboot/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/running/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/updating/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/windows/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/certificates/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/hadashboard/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/hass-configurator/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/ios/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/nginx/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/notebooks/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/scenegen/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/ecosystem/synology/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/tools/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/tools/dev-tools/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/tools/hass/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/docs/tools/scripts/
-2017-10-25T18:43:59+00:00
+2017-10-25T19:43:53+00:00
https://home-assistant.io/faq/after-upgrading/
@@ -5376,62 +5376,62 @@
https://home-assistant.io/demo/frontend.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:02+00:00
https://home-assistant.io/demo/index.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:02+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:02+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:02+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:02+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:02+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:02+00:00
https://home-assistant.io/demo/panels/ha-panel-history.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:02+00:00
https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:02+00:00
https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:02+00:00
https://home-assistant.io/demo/panels/ha-panel-map.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:02+00:00
https://home-assistant.io/googlef4f3693c209fe788.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:02+00:00
https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:02+00:00
https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:02+00:00
https://home-assistant.io/static/mdi-demo.html
-2017-10-25T18:43:16+00:00
+2017-10-25T19:43:03+00:00