According to the docs: Toybox.System.Stats.battery as Float, but on real fr965 it is a Number or at least it's value is always a Number (without decimal).
function initialize() {
session = ActivityRecording.createSession({
:name => "test",
:sport...