@chazepps/homebridge-hejhome
Version:
The Hejhome plugin allows you to access your Hejhome device(s) from HomeKit.
9 lines • 316 B
JavaScript
import { hejRequest } from './request.js';
export const getFamilies = async (platform) => {
if (!platform.token) {
throw new Error('Failed to retrieve token');
}
const { result } = await hejRequest(platform, 'GET', 'dashboard/family');
return result;
};
//# sourceMappingURL=get_family.js.map