Skip to content

Commit

Permalink
format files
Browse files Browse the repository at this point in the history
  • Loading branch information
despokd committed Sep 15, 2024
1 parent 452cc66 commit d174128
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions custom_components/zenkit/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)
2 changes: 1 addition & 1 deletion custom_components/zenkit/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
API_URL = "https://zenkit.com/api/v1"
UPDATE_INTERVAL = 60
ENTRIES_LIMIT = 100
DUE_DATE_FORMAT = "%Y-%m-%d"
DUE_DATE_FORMAT = "%Y-%m-%d"
2 changes: 1 addition & 1 deletion custom_components/zenkit/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion custom_components/zenkit/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
"""Error during update data from Zenkit."""

0 comments on commit d174128

Please sign in to comment.