mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Make the entity names for systemmonitor sensors a bit nicer
This prevents them from having trailing whitespace, which makes them end with `_`.
This commit is contained in:
@@ -119,7 +119,7 @@ class SystemMonitorSensor(Entity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
return self._name
|
return self._name.rstrip()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def state(self):
|
def state(self):
|
||||||
|
Reference in New Issue
Block a user