Update state_object.markdown (#725)

Added explanation on how to retrieve a state attribute that contains a space as i ran into that yesterday: https://github.com/home-assistant/home-assistant/issues/2716
This commit is contained in:
ThinkPadNL 2016-08-03 18:14:34 +02:00 committed by Paulus Schoutsen
parent 07c36b190d
commit 79921fa22d

View File

@ -37,3 +37,5 @@ Attribute | Description
`entity_picture` | Url to a picture that should be used instead of showing the domain icon. Example: `http://example.com/picture.jpg`.
`assumed_state` | Boolean if the current state is an assumption. [More info](https://home-assistant.io/blog/2016/02/12/classifying-the-internet-of-things/#classifiers) Example: `True`.
`unit_of_measurement` | The unit of measurement the state is expressed in. Used for grouping graphs or understanding the entity. Example: `°C`.
When an attribute contains spaces, you can retrieve it like this: `states.sensor.livingroom.attributes["Battery numeric"]`.