Attrs cleanups (#37849)
This commit is contained in:
parent
7e280e2b27
commit
ac0dbb17af
22 changed files with 141 additions and 148 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue