Move imports to top for openuv (#29541)
* Move imports to top for openuv * Renamed mock_pyopenuv_ to MockClient in test_config_flow
This commit is contained in:
parent
1ee8057662
commit
23fb364076
3 changed files with 10 additions and 12 deletions
|
@ -1,5 +1,6 @@
|
|||
"""Config flow to configure the OpenUV component."""
|
||||
|
||||
from pyopenuv import Client
|
||||
from pyopenuv.errors import OpenUvError
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant import config_entries
|
||||
|
@ -59,8 +60,6 @@ class OpenUvFlowHandler(config_entries.ConfigFlow):
|
|||
|
||||
async def async_step_user(self, user_input=None):
|
||||
"""Handle the start of the config flow."""
|
||||
from pyopenuv import Client
|
||||
from pyopenuv.errors import OpenUvError
|
||||
|
||||
if not user_input:
|
||||
return await self._show_form()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue