mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-07-30 16:38:31 +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),
|
(Properties.getValue("api_url") as Lang.String) + "/webhook/" + (Properties.getValue("webhook_id") as Lang.String),
|
||||||
{
|
{
|
||||||
"type" => "update_location",
|
"type" => "update_location",
|
||||||
"data" => data,
|
"data" => data
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:method => Communications.HTTP_REQUEST_METHOD_POST,
|
:method => Communications.HTTP_REQUEST_METHOD_POST,
|
||||||
|
@ -43,9 +43,10 @@ class PinDigit extends WatchUi.Selectable {
|
|||||||
var height = stepY - (marginY * 2);
|
var height = stepY - (marginY * 2);
|
||||||
|
|
||||||
var button = new PinDigitButton({
|
var button = new PinDigitButton({
|
||||||
:width => width,
|
:width => width,
|
||||||
:height => height,
|
:height => height,
|
||||||
:label => digit
|
:label => digit,
|
||||||
|
:touched => false
|
||||||
});
|
});
|
||||||
|
|
||||||
var buttonTouched = new PinDigitButton({
|
var buttonTouched = new PinDigitButton({
|
||||||
@ -89,7 +90,14 @@ class PinDigit extends WatchUi.Selectable {
|
|||||||
//!   + those required by `Drawable.initialize()`<br>
|
//!   + 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);
|
Drawable.initialize(options);
|
||||||
mText = options[:label];
|
mText = options[:label];
|
||||||
mTouched = options[:touched];
|
mTouched = options[:touched];
|
||||||
|
Reference in New Issue
Block a user