mirror of
https://github.com/home-assistant/core.git
synced 2026-02-15 07:36:16 +00:00
Add support for Nanoleaf Essentials / Replace aionanoleaf through aionanoleaf2 (#157295)
Co-authored-by: Joostlek <joostlek@outlook.com>
This commit is contained in:
@@ -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.*
|
||||
|
||||
4
CODEOWNERS
generated
4
CODEOWNERS
generated
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
10
mypy.ini
generated
10
mypy.ini
generated
@@ -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
|
||||
|
||||
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@@ -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
|
||||
|
||||
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user