diff --git a/.strict-typing b/.strict-typing index 69a4dc96edf..ae26a2984be 100644 --- a/.strict-typing +++ b/.strict-typing @@ -364,7 +364,6 @@ homeassistant.components.my.* homeassistant.components.mysensors.* homeassistant.components.myuplink.* homeassistant.components.nam.* -homeassistant.components.nanoleaf.* homeassistant.components.nasweb.* homeassistant.components.neato.* homeassistant.components.nest.* diff --git a/CODEOWNERS b/CODEOWNERS index 2e944e0169a..c1e9c39c44c 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1082,8 +1082,8 @@ build.json @home-assistant/supervisor /tests/components/nam/ @bieniu /homeassistant/components/namecheapdns/ @tr4nt0r /tests/components/namecheapdns/ @tr4nt0r -/homeassistant/components/nanoleaf/ @milanmeu @joostlek -/tests/components/nanoleaf/ @milanmeu @joostlek +/homeassistant/components/nanoleaf/ @milanmeu @joostlek @loebi-ch @JaspervRijbroek @jonathanrobichaud4 +/tests/components/nanoleaf/ @milanmeu @joostlek @loebi-ch @JaspervRijbroek @jonathanrobichaud4 /homeassistant/components/nasweb/ @nasWebio /tests/components/nasweb/ @nasWebio /homeassistant/components/nederlandse_spoorwegen/ @YarmoM @heindrichpaul diff --git a/homeassistant/components/nanoleaf/__init__.py b/homeassistant/components/nanoleaf/__init__.py index 7ee1c14a9b1..18aa4e7611a 100644 --- a/homeassistant/components/nanoleaf/__init__.py +++ b/homeassistant/components/nanoleaf/__init__.py @@ -6,7 +6,7 @@ import asyncio from contextlib import suppress import logging -from aionanoleaf import EffectsEvent, Nanoleaf, StateEvent, TouchEvent +from aionanoleaf2 import EffectsEvent, Nanoleaf, StateEvent, TouchEvent from homeassistant.const import ( CONF_DEVICE_ID, diff --git a/homeassistant/components/nanoleaf/config_flow.py b/homeassistant/components/nanoleaf/config_flow.py index d62168a4ad3..5b9653604d3 100644 --- a/homeassistant/components/nanoleaf/config_flow.py +++ b/homeassistant/components/nanoleaf/config_flow.py @@ -7,7 +7,7 @@ import logging import os from typing import Any, Final, cast -from aionanoleaf import InvalidToken, Nanoleaf, Unauthorized, Unavailable +from aionanoleaf2 import InvalidToken, Nanoleaf, Unauthorized, Unavailable import voluptuous as vol from homeassistant.config_entries import ( diff --git a/homeassistant/components/nanoleaf/coordinator.py b/homeassistant/components/nanoleaf/coordinator.py index 495a63b9164..16d140e8150 100644 --- a/homeassistant/components/nanoleaf/coordinator.py +++ b/homeassistant/components/nanoleaf/coordinator.py @@ -3,7 +3,7 @@ from datetime import timedelta import logging -from aionanoleaf import InvalidToken, Nanoleaf, Unavailable +from aionanoleaf2 import InvalidToken, Nanoleaf, Unavailable from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant diff --git a/homeassistant/components/nanoleaf/manifest.json b/homeassistant/components/nanoleaf/manifest.json index b1a2b4d3c89..faf0cf72e7f 100644 --- a/homeassistant/components/nanoleaf/manifest.json +++ b/homeassistant/components/nanoleaf/manifest.json @@ -1,7 +1,13 @@ { "domain": "nanoleaf", "name": "Nanoleaf", - "codeowners": ["@milanmeu", "@joostlek"], + "codeowners": [ + "@milanmeu", + "@joostlek", + "@loebi-ch", + "@JaspervRijbroek", + "@jonathanrobichaud4" + ], "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/nanoleaf", "homekit": { @@ -9,8 +15,8 @@ }, "integration_type": "device", "iot_class": "local_push", - "loggers": ["aionanoleaf"], - "requirements": ["aionanoleaf==0.2.1"], + "loggers": ["aionanoleaf2"], + "requirements": ["aionanoleaf2==1.0.2"], "ssdp": [ { "st": "Nanoleaf_aurora:light" diff --git a/mypy.ini b/mypy.ini index e228cbbfbd7..703aa342dba 100644 --- a/mypy.ini +++ b/mypy.ini @@ -3396,16 +3396,6 @@ disallow_untyped_defs = true warn_return_any = true warn_unreachable = true -[mypy-homeassistant.components.nanoleaf.*] -check_untyped_defs = true -disallow_incomplete_defs = true -disallow_subclassing_any = true -disallow_untyped_calls = true -disallow_untyped_decorators = true -disallow_untyped_defs = true -warn_return_any = true -warn_unreachable = true - [mypy-homeassistant.components.nasweb.*] check_untyped_defs = true disallow_incomplete_defs = true diff --git a/requirements_all.txt b/requirements_all.txt index 6936235c5f6..914a43e4cb2 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -332,7 +332,7 @@ aiomodernforms==0.1.8 aiomusiccast==0.15.0 # homeassistant.components.nanoleaf -aionanoleaf==0.2.1 +aionanoleaf2==1.0.2 # homeassistant.components.notion aionotion==2024.03.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 2bc49fedd2b..8e5047fdaee 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -317,7 +317,7 @@ aiomodernforms==0.1.8 aiomusiccast==0.15.0 # homeassistant.components.nanoleaf -aionanoleaf==0.2.1 +aionanoleaf2==1.0.2 # homeassistant.components.notion aionotion==2024.03.0 diff --git a/tests/components/nanoleaf/test_config_flow.py b/tests/components/nanoleaf/test_config_flow.py index d9616572b2e..bbae47ecea3 100644 --- a/tests/components/nanoleaf/test_config_flow.py +++ b/tests/components/nanoleaf/test_config_flow.py @@ -5,7 +5,7 @@ from __future__ import annotations from ipaddress import ip_address from unittest.mock import AsyncMock, MagicMock, patch -from aionanoleaf import InvalidToken, Unauthorized, Unavailable +from aionanoleaf2 import InvalidToken, Unauthorized, Unavailable import pytest from homeassistant import config_entries