updated the component and device api's to have as be a parameter for the function

This commit is contained in:
csawatzky 2025-04-22 14:33:19 -06:00
parent c617ebf868
commit b62c7dbe5c
39 changed files with 346 additions and 651 deletions

View file

@ -104,7 +104,8 @@ export default function Device(props: Props) {
undefined,
[deviceID.toString()],
["device"],
true
true,
as
);
let interactionsPromise = interactionsAPI.listInteractionsByDevice(deviceID, undefined, as);
let groupPromise: Promise<any> = Promise.resolve(undefined);
@ -343,7 +344,7 @@ export default function Device(props: Props) {
let updatedPreferences = cloneDeep(preferences);
updatedPreferences.notify = !preferences.notify;
deviceAPI
.updatePreferences(deviceID, updatedPreferences)
.updatePreferences(deviceID, updatedPreferences, undefined, undefined, as)
.then(() => setPreferences(updatedPreferences))
.catch(() => {
error(