@@ -204,11 +204,11 @@ console.log("no support for Multicolor LED. " + indicatorState)
204204 property variant deviceState: action("device-state").state
205205 Component.onCompleted: start()
206206 onBatteryLevelChanged: {
207− root.batteryLevel = batteryLevel
207+ root.batteryLevel = batteryLevel ? batteryLevel : 0.00
208208 updateLightState("onBatteryLevelChanged")
209209 }
210210 onDeviceStateChanged: {
211− root.deviceState = deviceState
211+ root.deviceState = deviceState ? deviceState : "unknown"
212212 updateLightState("onDeviceStateChanged")
213213 }
214214 }