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