Fix PEPE257 issues

This commit is contained in:
Fabian Affolter committed 2016-03-08 16:46:34 +01:00
1 parent 49ebc6d0b0
commit 8bff97083c
49 files changed
+429 -363

No files matched your search

+2 -2
View File
@@ -117,7 +117,7 @@ class MySensorsSensor(Entity):
@property
def name(self):
"""The name of this entity."""
"""Return the name of this entity."""
return self._name
@property
@@ -129,7 +129,7 @@ class MySensorsSensor(Entity):
@property
def unit_of_measurement(self):
"""Unit of measurement of this entity."""
"""Return the unit of measurement of this entity."""
set_req = self.gateway.const.SetReq
unit_map = {
set_req.V_TEMP: (TEMP_CELCIUS