File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
homeassistant/components/asuswrt Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55from abc import ABC , abstractmethod
6- from collections import namedtuple
76from collections .abc import Awaitable , Callable , Coroutine
87import functools
98import logging
10- from typing import Any
9+ from typing import Any , NamedTuple
1110
1211from aioasuswrt .asuswrt import AsusWrt as AsusWrtLegacy
1312from aiohttp import ClientSession
6160SENSORS_TYPE_TEMPERATURES = "sensors_temperatures"
6261SENSORS_TYPE_UPTIME = "sensors_uptime"
6362
64- WrtDevice = namedtuple ("WrtDevice" , ["ip" , "name" , "connected_to" ]) # noqa: PYI024
63+
64+ class WrtDevice (NamedTuple ):
65+ """WrtDevice structure."""
66+
67+ ip : str | None
68+ name : str | None
69+ conneted_to : str | None
70+
6571
6672_LOGGER = logging .getLogger (__name__ )
6773
You can’t perform that action at this time.
0 commit comments