Enable mypy checks for homekit_controller (#65358)
This commit is contained in:
parent
ab17f8984b
commit
dd5bcafab7
8 changed files with 14 additions and 18 deletions
|
@ -280,9 +280,13 @@ class HomekitControllerFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
if self.controller is None:
|
||||
await self._async_setup_controller()
|
||||
|
||||
# mypy can't see that self._async_setup_controller() always sets self.controller or throws
|
||||
assert self.controller
|
||||
|
||||
pairing = self.controller.load_pairing(
|
||||
existing.data["AccessoryPairingID"], dict(existing.data)
|
||||
)
|
||||
|
||||
try:
|
||||
await pairing.list_accessories_and_characteristics()
|
||||
except AuthenticationError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue