ec-battery: Standardize the output of the "online" property
Return "0" when no power supply is present