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:
springstan 2019-12-06 22:13:43 +01:00 committed by Aaron Bach
parent 1ee8057662
commit 23fb364076
3 changed files with 10 additions and 12 deletions

View file

@ -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()