diff --git a/.env.example b/.env.example index aa1dbe7..a1a8e3b 100644 --- a/.env.example +++ b/.env.example @@ -11,4 +11,5 @@ TIDAL_PORT=47836 HA_API_URL=http://homeassistant.com/api/states/ HA_API_TOKEN=Nina hätte hier jetzt ihr Token ausversehen stehen hihi HA_DESK_SENSOR_ID=entityId +HA_DESK_SENSOR_TEXT=entityId HA_ROOMTEMP_SENSOR_IDS=entityId(,separated) diff --git a/src/util/api-homeassistant.ts b/src/util/api-homeassistant.ts index fad6b70..a8766c2 100644 --- a/src/util/api-homeassistant.ts +++ b/src/util/api-homeassistant.ts @@ -1,6 +1,6 @@ import axios from "axios"; import { Config } from "../config/config.ts"; -import { logInfo, logWarning } from "./logger.ts"; +import { logWarning } from "./logger.ts"; type HomeAssistantEntity = { entity_id: string; diff --git a/src/util/general.ts b/src/util/general.ts index 33b7abb..a753ae7 100644 --- a/src/util/general.ts +++ b/src/util/general.ts @@ -62,9 +62,3 @@ export function secondsToReadable( "", ); } - -function meterToCentimeters(length: string): number { - const meters = parseFloat(length); - const centimeters = Math.round(meters * 100); - return centimeters; -}