mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-07-30 00:18:38 +00:00
Tidy
This commit is contained in:
@ -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,
|
||||
|
@ -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()`<br>
|
||||
//! ``}`
|
||||
//
|
||||
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];
|
||||
|
Reference in New Issue
Block a user