diff --git a/custom_components/bms_connector/bms/seplos/v2/sensors.py b/custom_components/bms_connector/bms/seplos/v2/sensors.py index df365b9..3261ff5 100644 --- a/custom_components/bms_connector/bms/seplos/v2/sensors.py +++ b/custom_components/bms_connector/bms/seplos/v2/sensors.py @@ -259,8 +259,9 @@ def interpret_alarm(self, event, value): # For other alarm events, interpret them as bit flags triggered_alarms = [flag for idx, flag in enumerate(flags) if value is not None and value & (1 << idx)] - return ', '.join(str(triggered_alarms)) if triggered_alarms else "No Alarm" + #return ', '.join(str(triggered_alarms)) if triggered_alarms else "No Alarm" + return ', '.join(str(alarm) for alarm in triggered_alarms) if triggered_alarms else "No Alarm" def __init__(self, coordinator, port, attribute, name, unit=None, icon=None, battery_address=None, sensor_prefix=None): """Initialize the sensor."""