Update docstrings (#7374)

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstring

* Update docstrings

* Update docstrings

* Fix lint issues

* Update docstrings

* Revert changes in dict
This commit is contained in:
Fabian Affolter 2017-05-02 18:18:47 +02:00 committed by Paulus Schoutsen
parent 0e08925259
commit a4f1f6e724
340 changed files with 1533 additions and 1708 deletions

View file

@ -53,26 +53,26 @@ class BlinkSensor(Entity):
@property
def name(self):
"""A method to return the name of the camera."""
"""Return the name of the camera."""
return self._name
@property
def state(self):
"""A camera's current state."""
"""Return the camera's current state."""
return self._state
@property
def unique_id(self):
"""A unique camera sensor identifier."""
"""Return the unique camera sensor identifier."""
return "sensor_{}_{}".format(self._name, self.index)
@property
def unit_of_measurement(self):
"""A method to determine the unit of measurement for temperature."""
"""Return the unit of measurement."""
return self._unit_of_measurement
def update(self):
"""A method to retrieve sensor data from the camera."""
"""Retrieve sensor data from the camera."""
camera = self.data.cameras[self._camera_name]
if self._type == 'temperature':
self._state = camera.temperature