do a little cleaning

This commit is contained in:
Darius
2025-10-03 13:47:02 +02:00
parent 31b9ba105f
commit dcb12dfa99
3 changed files with 2 additions and 7 deletions

View File

@@ -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)

View File

@@ -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;

View File

@@ -62,9 +62,3 @@ export function secondsToReadable(
"", "",
); );
} }
function meterToCentimeters(length: string): number {
const meters = parseFloat(length);
const centimeters = Math.round(meters * 100);
return centimeters;
}