mirror of
https://github.com/home-assistant/core.git
synced 2026-09-04 10:05:34 -05:00
Improve the readability of status messages in NUT (#141335)
Improve the readability of status messages
This commit is contained in:
@@ -1097,6 +1097,6 @@ class NUTSensor(NUTBaseEntity, SensorEntity):
|
||||
def _format_display_state(status: dict[str, str]) -> str:
|
||||
"""Return UPS display state."""
|
||||
try:
|
||||
return " ".join(STATE_TYPES[state] for state in status[KEY_STATUS].split())
|
||||
return ", ".join(STATE_TYPES[state] for state in status[KEY_STATUS].split())
|
||||
except KeyError:
|
||||
return STATE_UNKNOWN
|
||||
|
||||
Reference in New Issue
Block a user