Compare commits

..

2 Commits

Author SHA1 Message Date
FerronN cf0938a6fd
fix data parsing in sensors_wslink.py 2025-07-11 10:16:59 +02:00
FerronN 4d2dedbb11
Fix structure en.json 2025-07-11 10:15:44 +02:00
2 changed files with 1 additions and 2 deletions

View File

@ -309,7 +309,7 @@ SENSOR_TYPES_WSLINK: tuple[WeatherSensorEntityDescription, ...] = (
name="Outside Battery",
icon="mdi:battery",
device_class=SensorDeviceClass.ENUM,
value_fn=lambda data: cast("str", battery_level_to_text(data)),
value_fn=lambda data: battery_level_to_text(int(data)) if data is not None and str(data).isdigit() else "unknown",
translation_key=OUTSIDE_BATTERY,
),
)

View File

@ -138,7 +138,6 @@
}
},
"outside_battery": { "name": "Outside battery level" }
}
}
},
"notify": {