diff --git a/custom_components/zenkit/config_flow.py b/custom_components/zenkit/config_flow.py index 54fb8b3..d03b819 100644 --- a/custom_components/zenkit/config_flow.py +++ b/custom_components/zenkit/config_flow.py @@ -47,10 +47,9 @@ async def async_step_user( errors["base"] = "unknown" else: return self.async_create_entry( - title=user.get("username", "Zenkit"), - data=user_input + title=user.get("username", "Zenkit"), data=user_input ) return self.async_show_form( step_id="user", data_schema=STEP_USER_DATA_SCHEMA, errors=errors - ) \ No newline at end of file + ) diff --git a/custom_components/zenkit/const.py b/custom_components/zenkit/const.py index 4cb6728..ef88112 100644 --- a/custom_components/zenkit/const.py +++ b/custom_components/zenkit/const.py @@ -4,4 +4,4 @@ API_URL = "https://zenkit.com/api/v1" UPDATE_INTERVAL = 60 ENTRIES_LIMIT = 100 -DUE_DATE_FORMAT = "%Y-%m-%d" \ No newline at end of file +DUE_DATE_FORMAT = "%Y-%m-%d" diff --git a/custom_components/zenkit/coordinator.py b/custom_components/zenkit/coordinator.py index d810653..e5f5a4d 100644 --- a/custom_components/zenkit/coordinator.py +++ b/custom_components/zenkit/coordinator.py @@ -28,7 +28,7 @@ def __init__(self, hass: HomeAssistant, zk: Zenkit) -> None: _LOGGER, name=DOMAIN, update_interval=timedelta(seconds=UPDATE_INTERVAL), - always_update=True + always_update=True, ) async def _async_update_data(self) -> dict: diff --git a/custom_components/zenkit/exceptions.py b/custom_components/zenkit/exceptions.py index fd70e90..042b4ef 100644 --- a/custom_components/zenkit/exceptions.py +++ b/custom_components/zenkit/exceptions.py @@ -10,5 +10,6 @@ class ZenkitException(HomeAssistantError): class CannotLoginException(ZenkitException): """Unable to login to the Zenkit API.""" + class UpdateFailedException(ZenkitException): - """Error during update data from Zenkit.""" \ No newline at end of file + """Error during update data from Zenkit."""