|
|
@ -36,7 +36,7 @@ async function with_unit(s: HA_RESPONSE | Promise<HA_RESPONSE>) {
|
|
|
|
|
|
|
|
|
|
|
|
async function arrow(entity: string) {
|
|
|
|
async function arrow(entity: string) {
|
|
|
|
const number = parseFloat((await get_state(entity)).state);
|
|
|
|
const number = parseFloat((await get_state(entity)).state);
|
|
|
|
return number < 0 ? "↓" : number > 0 ? "↑" : "=";
|
|
|
|
return number < 0 ? "▼" : number > 0 ? "▲" : "=";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default new (class DashboardPage extends StatefulPage<State, typeof actions> {
|
|
|
|
export default new (class DashboardPage extends StatefulPage<State, typeof actions> {
|
|
|
|