diff --git a/source/BackgroundServiceDelegate.mc b/source/BackgroundServiceDelegate.mc index 12c67ac..71ea4c5 100644 --- a/source/BackgroundServiceDelegate.mc +++ b/source/BackgroundServiceDelegate.mc @@ -154,7 +154,7 @@ class BackgroundServiceDelegate extends System.ServiceDelegate { (Properties.getValue("api_url") as Lang.String) + "/webhook/" + (Properties.getValue("webhook_id") as Lang.String), { "type" => "update_location", - "data" => data, + "data" => data }, { :method => Communications.HTTP_REQUEST_METHOD_POST, diff --git a/source/HomeAssistantPinConfirmation.mc b/source/HomeAssistantPinConfirmation.mc index d252f71..bccf5b9 100644 --- a/source/HomeAssistantPinConfirmation.mc +++ b/source/HomeAssistantPinConfirmation.mc @@ -43,9 +43,10 @@ class PinDigit extends WatchUi.Selectable { var height = stepY - (marginY * 2); var button = new PinDigitButton({ - :width => width, - :height => height, - :label => digit + :width => width, + :height => height, + :label => digit, + :touched => false }); var buttonTouched = new PinDigitButton({ @@ -89,7 +90,14 @@ class PinDigit extends WatchUi.Selectable { //!   + those required by `Drawable.initialize()`
//! ``}` // - function initialize(options) { + function initialize( + options as { + :width as Lang.Float, + :height as Lang.Float, + :label as Lang.Number, + :touched as Lang.Boolean + } + ) { Drawable.initialize(options); mText = options[:label]; mTouched = options[:touched];