Skip to content

Commit

Permalink
2024.12.0b1: restore application block entities
Browse files Browse the repository at this point in the history
bump pyfamilysafety to 1.1.1
  • Loading branch information
pantherale0 authored Nov 15, 2024
1 parent 8d41ba6 commit 6d15c7a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion custom_components/family_safety/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/pantherale0/ha-familysafety/issues",
"requirements": [
"pyfamilysafety==1.1.0"
"pyfamilysafety==1.1.1"
],
"ssdp": [],
"version": "1.2.0",
Expand Down
18 changes: 9 additions & 9 deletions custom_components/family_safety/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ async def async_setup_entry(
platform=platform,
)
)
# for app in config_entry.options.get("tracked_applications", []):
# entities.append(
# ApplicationBlockSwitch(
# coordinator=hass.data[DOMAIN][config_entry.entry_id],
# idx=None,
# account_id=account.user_id,
# app_id=app,
# )
# )
for app in config_entry.options.get("tracked_applications", []):
entities.append(
ApplicationBlockSwitch(
coordinator=hass.data[DOMAIN][config_entry.entry_id],
idx=None,
account_id=account.user_id,
app_id=app,
)
)

async_add_entities(entities, True)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ colorlog==6.9.0
homeassistant==2024.11.0
pip>=21.0,<24.4
ruff==0.1.9
pyfamilysafety==1.1.0
pyfamilysafety==1.1.1

0 comments on commit 6d15c7a

Please sign in to comment.