diff --git a/myautomatic.devicetype b/myautomatic.devicetype index e095db4..a167254 100644 --- a/myautomatic.devicetype +++ b/myautomatic.devicetype @@ -2,7 +2,7 @@ * My Automatic Device * * Copyright 2015 Yves Racine - * Version 1.8.2 + * Version 1.8.3 * linkedIn profile: ca.linkedin.com/pub/yves-racine-m-sc-a/0/406/4b/ * Refer to readme file for installation instructions. * @@ -568,7 +568,10 @@ metadata { void poll() { - def vehicleId= determine_vehicle_id("") + def vehicleId= determine_vehicle_id(settings.vehicleId) + // Update the vehicle information + + getVehicles(vehicleId) String dateInLocalTime = new Date().format("yyyy-MM-dd", location.timeZone) @@ -578,9 +581,6 @@ void poll() { getCurrentUserInfo() - // Update the vehicle information - - getVehicles(vehicleId) if (settings.trace) { log.debug "poll>about to call generateTripStats,dateInLocalTime=${dateInLocalTime},state.lastGeneratedDate= $state.lastGeneratedDate"