From 6d15c7a26dab5f469b5d3f554d0677d23dc23e5a Mon Sep 17 00:00:00 2001 From: Jordan Harvey Date: Fri, 15 Nov 2024 21:54:03 +0000 Subject: [PATCH] 2024.12.0b1: restore application block entities bump pyfamilysafety to 1.1.1 --- custom_components/family_safety/manifest.json | 2 +- custom_components/family_safety/switch.py | 18 +++++++++--------- requirements.txt | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/custom_components/family_safety/manifest.json b/custom_components/family_safety/manifest.json index 74e3560..418a802 100644 --- a/custom_components/family_safety/manifest.json +++ b/custom_components/family_safety/manifest.json @@ -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", diff --git a/custom_components/family_safety/switch.py b/custom_components/family_safety/switch.py index 42b5cda..cf7bb5c 100644 --- a/custom_components/family_safety/switch.py +++ b/custom_components/family_safety/switch.py @@ -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) diff --git a/requirements.txt b/requirements.txt index d33dd4a..0f16934 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 \ No newline at end of file +pyfamilysafety==1.1.1 \ No newline at end of file