mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Implement dummy reportAccountAction
This commit is contained in:
@@ -198,6 +198,12 @@ class SonosSoap {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async reportAccountAction(args: any, headers: any) {
|
||||||
|
// Sonos calls this after a user adds or removes an account.
|
||||||
|
// It's safe to just acknowledge the call.
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
getDeviceAuthToken({
|
getDeviceAuthToken({
|
||||||
linkCode,
|
linkCode,
|
||||||
}: {
|
}: {
|
||||||
@@ -515,6 +521,8 @@ function bindSmapiSoapServiceToExpress(
|
|||||||
Sonos: {
|
Sonos: {
|
||||||
SonosSoap: {
|
SonosSoap: {
|
||||||
getAppLink: () => sonosSoap.getAppLink(),
|
getAppLink: () => sonosSoap.getAppLink(),
|
||||||
|
reportAccountAction: (args: any, _: any, __: any, { headers }: Pick<Request, "headers">) =>
|
||||||
|
sonosSoap.reportAccountAction(args, headers),
|
||||||
getDeviceAuthToken: ({ linkCode }: { linkCode: string }) =>{
|
getDeviceAuthToken: ({ linkCode }: { linkCode: string }) =>{
|
||||||
const deviceAuthTokenResult = sonosSoap.getDeviceAuthToken({ linkCode });
|
const deviceAuthTokenResult = sonosSoap.getDeviceAuthToken({ linkCode });
|
||||||
const smapiToken:SmapiToken = {
|
const smapiToken:SmapiToken = {
|
||||||
|
|||||||
Reference in New Issue
Block a user