diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index bdd2e7d7..92412924 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -32,38 +32,9 @@ jobs: core-version: "2023.6.1" - python-version: "3.11" core-version: "2023.7.3" - - python-version: "3.11" # 2023.7.3 - core-version: "40b5605cafcf81925c6066545b0bc226ee78a4e4" # 2023.7.3 - python-version: "3.11" n: "0" core-version: "3a06659120aa629e0db290ec9e83e2ad129baaf3" - - python-version: "3.11" - n: "1" - core-version: "3a06659120aa629e0db290ec9e83e2ad129baaf3" - - python-version: "3.11" - n: "2" - core-version: "3a06659120aa629e0db290ec9e83e2ad129baaf3" - - python-version: "3.11" - n: "3" - core-version: "3a06659120aa629e0db290ec9e83e2ad129baaf3" - - python-version: "3.11" - n: "4" - core-version: "3a06659120aa629e0db290ec9e83e2ad129baaf3" - - python-version: "3.11" - n: "5" - core-version: "c76fac0633749e8f463f9b6c22a4d47bba5ba1e7" - - python-version: "3.11" - n: "0" - core-version: "c76fac0633749e8f463f9b6c22a4d47bba5ba1e7" - - python-version: "3.11" - n: "1" - core-version: "c76fac0633749e8f463f9b6c22a4d47bba5ba1e7" - - python-version: "3.11" - n: "2" - core-version: "c76fac0633749e8f463f9b6c22a4d47bba5ba1e7" - - python-version: "3.11" - n: "3" - core-version: "c76fac0633749e8f463f9b6c22a4d47bba5ba1e7" - python-version: "3.11" n: "4" core-version: "c76fac0633749e8f463f9b6c22a4d47bba5ba1e7" diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index ad23253c..eb005ef2 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -2259,6 +2259,8 @@ class AdaptiveLightingManager: elif state == STATE_OFF: # is turning on on(eid, event) + _LOGGER.debug("end of turn_on_off_event_listener()") + async def state_changed_event_listener(self, event: Event) -> None: """Track 'state_changed' events.""" entity_id = event.data.get(ATTR_ENTITY_ID, "") diff --git a/tests/test_switch.py b/tests/test_switch.py index 7c7caef8..e4082bb4 100644 --- a/tests/test_switch.py +++ b/tests/test_switch.py @@ -814,6 +814,7 @@ async def test_auto_reset_manual_control(hass): await update() await asyncio.sleep(0.3) # Wait the auto reset time assert not manual_control[light.entity_id] + assert 0, switch.extra_state_attributes["autoreset_time_remaining"] async def test_apply_service(hass):