This commit is contained in:
Darius
2026-02-10 09:53:52 +01:00
parent 37d3e2ede4
commit 908350f696
3 changed files with 11 additions and 17 deletions

View File

@@ -73,19 +73,14 @@ export class HomepageService extends BaseService<null> {
async sendFullInformationToSocket(socket: WebSocket): Promise<void> {
try {
const [desk, temp, tidal, personal_goals] = await this._getAll();
const updates: ComponentUpdate[] = [
createComponentUpdate(
StatusComponent.HA_DESK_POSITION,
this.lastPoll.ha_desk_position,
),
createComponentUpdate(StatusComponent.HA_TEMP, this.lastPoll.ha_temp),
createComponentUpdate(
StatusComponent.TIDAL_CURRENT,
this.lastPoll.tidal_current,
),
createComponentUpdate(StatusComponent.HA_DESK_POSITION, desk),
createComponentUpdate(StatusComponent.HA_TEMP, temp),
createComponentUpdate(StatusComponent.TIDAL_CURRENT, tidal),
createComponentUpdate(
StatusComponent.GRIST_PERSONAL_GOALS,
this.lastPoll.grist_personal_goals,
personal_goals,
),
];
socket.send(