Fix wrong name handling in rfxtrx sensor (#4531)

pull/4350/merge
Pascal Vizeli 2016-11-22 21:47:37 +01:00 committed by Paulus Schoutsen
parent ce13b0989d
commit 8e776b4dc0
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ class RfxtrxSensor(Entity):
@property
def name(self):
"""Get the name of the sensor."""
return self._name
return "{} {}".format(self._name, self.data_type)
@property
def device_state_attributes(self):