@@ -204,11 +204,11 @@ console.log("no support for Multicolor LED. " + indicatorState)
204 property variant deviceState: action("device-state").state
204 property variant deviceState: action("device-state").state
205 Component.onCompleted: start()
205 Component.onCompleted: start()
206 onBatteryLevelChanged: {
206 onBatteryLevelChanged: {
207− root.batteryLevel = batteryLevel
207+ root.batteryLevel = batteryLevel ? batteryLevel : 0.00
208 updateLightState("onBatteryLevelChanged")
208 updateLightState("onBatteryLevelChanged")
210 onDeviceStateChanged: {
210 onDeviceStateChanged: {
211− root.deviceState = deviceState
211+ root.deviceState = deviceState ? deviceState : "unknown"
212 updateLightState("onDeviceStateChanged")
212 updateLightState("onDeviceStateChanged")