Forced the isy994 component to treat underscores as spaces.

This commit is contained in:
Ryan Kraus 2015-04-17 09:30:20 -04:00
parent 6b2dd69bcb
commit da4cf61a09

View file

@ -156,7 +156,8 @@ class ISYDeviceABC(ToggleEntity):
@property
def name(self):
""" Returns the cleaned name of the node. """
return self.raw_name.replace(HIDDEN_STRING, '').strip()
return self.raw_name.replace(HIDDEN_STRING, '').strip() \
.replace('_', ' ')
def update(self):
""" Update state of the sensor. """