do a little cleaning
This commit is contained in:
@@ -11,4 +11,5 @@ TIDAL_PORT=47836
|
|||||||
HA_API_URL=http://homeassistant.com/api/states/
|
HA_API_URL=http://homeassistant.com/api/states/
|
||||||
HA_API_TOKEN=Nina hätte hier jetzt ihr Token ausversehen stehen hihi
|
HA_API_TOKEN=Nina hätte hier jetzt ihr Token ausversehen stehen hihi
|
||||||
HA_DESK_SENSOR_ID=entityId
|
HA_DESK_SENSOR_ID=entityId
|
||||||
|
HA_DESK_SENSOR_TEXT=entityId
|
||||||
HA_ROOMTEMP_SENSOR_IDS=entityId(,separated)
|
HA_ROOMTEMP_SENSOR_IDS=entityId(,separated)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { Config } from "../config/config.ts";
|
import { Config } from "../config/config.ts";
|
||||||
import { logInfo, logWarning } from "./logger.ts";
|
import { logWarning } from "./logger.ts";
|
||||||
|
|
||||||
type HomeAssistantEntity = {
|
type HomeAssistantEntity = {
|
||||||
entity_id: string;
|
entity_id: string;
|
||||||
|
|||||||
@@ -62,9 +62,3 @@ export function secondsToReadable(
|
|||||||
"",
|
"",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function meterToCentimeters(length: string): number {
|
|
||||||
const meters = parseFloat(length);
|
|
||||||
const centimeters = Math.round(meters * 100);
|
|
||||||
return centimeters;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user