Fix wrong name handling in rfxtrx sensor (#4531)
parent
ce13b0989d
commit
8e776b4dc0
|
@ -124,7 +124,7 @@ class RfxtrxSensor(Entity):
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
"""Get the name of the sensor."""
|
"""Get the name of the sensor."""
|
||||||
return self._name
|
return "{} {}".format(self._name, self.data_type)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_state_attributes(self):
|
def device_state_attributes(self):
|
||||||
|
|
Loading…
Reference in New Issue