Compare commits

...

3 Commits

Author SHA1 Message Date
FerronN 2db0c27d68
Merge cf0938a6fd into 99d25bfd56 2025-07-11 08:17:02 +00:00
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", name="Outside Battery",
icon="mdi:battery", icon="mdi:battery",
device_class=SensorDeviceClass.ENUM, 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, translation_key=OUTSIDE_BATTERY,
), ),
) )

View File

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