Attrs cleanups (#37849)

This commit is contained in:
Ville Skyttä 2020-07-14 20:30:30 +03:00 committed by GitHub
parent 7e280e2b27
commit ac0dbb17af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 141 additions and 148 deletions

View file

@ -35,9 +35,9 @@ class DeviceTrackerPlatform:
"setup_scanner",
)
name = attr.ib(type=str)
platform = attr.ib(type=ModuleType)
config = attr.ib(type=Dict)
name: str = attr.ib()
platform: ModuleType = attr.ib()
config: Dict = attr.ib()
@property
def type(self):