mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2025-01-08 19:38:09 +01:00
Implement PEP561 typing support (#55)
This commit is contained in:
parent
f11f6e0122
commit
0ac14489c8
@ -1,2 +1,3 @@
|
|||||||
include LICENSE
|
include LICENSE
|
||||||
include requirements.txt
|
include requirements.txt
|
||||||
|
include aioesphomeapi/py.typed
|
||||||
|
@ -114,7 +114,7 @@ class APIClient:
|
|||||||
eventloop: asyncio.AbstractEventLoop,
|
eventloop: asyncio.AbstractEventLoop,
|
||||||
address: str,
|
address: str,
|
||||||
port: int,
|
port: int,
|
||||||
password: str,
|
password: Optional[str],
|
||||||
*,
|
*,
|
||||||
client_info: str = "aioesphomeapi",
|
client_info: str = "aioesphomeapi",
|
||||||
keepalive: float = 15.0,
|
keepalive: float = 15.0,
|
||||||
|
@ -423,7 +423,7 @@ class NumberState(EntityState):
|
|||||||
missing_state: bool = False
|
missing_state: bool = False
|
||||||
|
|
||||||
|
|
||||||
COMPONENT_TYPE_TO_INFO = {
|
COMPONENT_TYPE_TO_INFO: Dict[str, Type[EntityInfo]] = {
|
||||||
"binary_sensor": BinarySensorInfo,
|
"binary_sensor": BinarySensorInfo,
|
||||||
"cover": CoverInfo,
|
"cover": CoverInfo,
|
||||||
"fan": FanInfo,
|
"fan": FanInfo,
|
||||||
|
0
aioesphomeapi/py.typed
Normal file
0
aioesphomeapi/py.typed
Normal file
Loading…
Reference in New Issue
Block a user