schema update
This commit is contained in:
@@ -56,11 +56,6 @@ export class HomeAssistantService extends BaseService<HomeAssistantClient> {
|
||||
const result = {
|
||||
raw,
|
||||
as_boolean: position === 1,
|
||||
as_text: () => {
|
||||
if (position === 1) return "standing";
|
||||
if (position === 0) return "sitting";
|
||||
return "unknown";
|
||||
},
|
||||
last_changed: calculateSecondsBetween(
|
||||
new Date(raw.last_changed).getTime(),
|
||||
Date.now(),
|
||||
|
||||
Reference in New Issue
Block a user