Implement PEP561 typing support (#55)

This commit is contained in:
Otto Winter 2021-06-30 17:05:44 +02:00 committed by GitHub
parent f11f6e0122
commit 0ac14489c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 2 deletions

View File

@ -1,2 +1,3 @@
include LICENSE
include requirements.txt
include aioesphomeapi/py.typed

View File

@ -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,

View File

@ -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
View File