Skip to content

Commit

Permalink
1.1.0b4
Browse files Browse the repository at this point in the history
Regression fixes
  • Loading branch information
pantherale0 committed Sep 20, 2023
1 parent cd7edb3 commit 94b0459
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions custom_components/family_safety/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,14 @@ async def _async_create_entry(self, **kwargs) -> config_entries.FlowResult:
tracked_applications = self._get_config_entry("tracked_applications")
if kwargs.get("tracked_applications", None) is not None:
tracked_applications = kwargs.get("tracked_applications")
if tracked_applications is None:
tracked_applications = []

accounts = self._get_config_entry("accounts")
if kwargs.get("accounts", None) is not None:
accounts = kwargs.get("accounts")
if accounts is None:
accounts = []

await self.family_safety.api.end_session()
return self.async_create_entry(
Expand Down Expand Up @@ -194,6 +198,8 @@ async def async_step_applications(
tracked_applications = self.config_entry.data.get("tracked_applications", [])
if self.config_entry.options:
tracked_applications = self.config_entry.options.get("tracked_applications", [])
if tracked_applications is None:
tracked_applications = []
for app in tracked_applications:
try:
default_tracked_applications.append(
Expand Down Expand Up @@ -235,6 +241,8 @@ async def async_step_accounts(

default_tracked_accounts = []
tracked_accounts = self.config_entry.data.get("accounts", [])
if tracked_accounts is None:
tracked_accounts = []
if self.config_entry.options:
tracked_accounts = self.config_entry.options.get("accounts", [])
for account in tracked_accounts:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/family_safety/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

NAME = "Microsoft Family Safety"
DOMAIN = "family_safety"
VERSION = "1.1.0b3"
VERSION = "1.1.0b4"

DEFAULT_OVERRIDE_ENTITIES = [OverrideTarget.MOBILE,
OverrideTarget.WINDOWS,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/family_safety/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"requirements": ["pyfamilysafety==0.1.1"],
"ssdp": [],
"zeroconf": [],
"version": "1.1.0b3",
"version": "1.1.0b4",
"integration_type": "service"
}

0 comments on commit 94b0459

Please sign in to comment.