mirror of
https://github.com/home-assistant/core.git
synced 2025-12-23 12:29:55 +00:00
Update homekit_controller import style (#25940)
This commit is contained in:
@@ -3,6 +3,7 @@ import os
|
||||
import json
|
||||
import logging
|
||||
|
||||
import homekit
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant import config_entries
|
||||
@@ -62,8 +63,6 @@ class HomekitControllerFlowHandler(config_entries.ConfigFlow):
|
||||
|
||||
def __init__(self):
|
||||
"""Initialize the homekit_controller flow."""
|
||||
import homekit # pylint: disable=import-error
|
||||
|
||||
self.model = None
|
||||
self.hkid = None
|
||||
self.devices = {}
|
||||
@@ -224,8 +223,6 @@ class HomekitControllerFlowHandler(config_entries.ConfigFlow):
|
||||
|
||||
async def async_step_pair(self, pair_info=None):
|
||||
"""Pair with a new HomeKit accessory."""
|
||||
import homekit # pylint: disable=import-error
|
||||
|
||||
# If async_step_pair is called with no pairing code then we do the M1
|
||||
# phase of pairing. If this is successful the device enters pairing
|
||||
# mode.
|
||||
|
||||
Reference in New Issue
Block a user