From 16c9270655fdc913e8d36decbf433969b30782fb Mon Sep 17 00:00:00 2001 From: "firstof9@gmail.com" Date: Sat, 17 Feb 2024 12:03:01 -0700 Subject: [PATCH] latest changes --- custom_components/mail_and_packages/const.py | 4 +++- custom_components/mail_and_packages/oauth.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_components/mail_and_packages/const.py b/custom_components/mail_and_packages/const.py index 0f3c9fb2..60367d15 100644 --- a/custom_components/mail_and_packages/const.py +++ b/custom_components/mail_and_packages/const.py @@ -67,7 +67,9 @@ "port": 993, } CONF_O365_TENANT = "tenant" -CONF_O365_SCOPE = ["https://outlook.office365.com/.default"] +CONF_O365_SCOPE = [ + "https://graph.microsoft.com/.default", + ] # GMail Config CONF_GMAIL_DEFAULTS = { diff --git a/custom_components/mail_and_packages/oauth.py b/custom_components/mail_and_packages/oauth.py index 32f5be15..654b58fe 100644 --- a/custom_components/mail_and_packages/oauth.py +++ b/custom_components/mail_and_packages/oauth.py @@ -42,6 +42,7 @@ def _set_authority(self) -> None: self._authority = ( f"https://login.microsoftonline.com/{self.config[CONF_O365_TENANT]}" ) + async def client(self) -> None: """Setup client oauth."""