Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion homeassistant/components/lametric/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ async def async_step_reauth(self, entry_data: Mapping[str, Any]) -> FlowResult:
async def async_step_choice_enter_manual_or_fetch_cloud(
self, user_input: dict[str, Any] | None = None
) -> FlowResult:
"""Handle the user's choice of entering the manual credentials or fetching the cloud credentials."""
"""Handle the user's choice.

Either enter the manual credentials or fetch the cloud credentials.
"""
return self.async_show_menu(
step_id="choice_enter_manual_or_fetch_cloud",
menu_options=["pick_implementation", "manual_entry"],
Expand Down
6 changes: 4 additions & 2 deletions tests/components/lametric/test_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ async def test_notification_defaults(
NOTIFY_DOMAIN,
NOTIFY_SERVICE,
{
ATTR_MESSAGE: "Try not to become a man of success. Rather become a man of value",
ATTR_MESSAGE: (
"Try not to become a man of success. Rather become a man of value"
),
},
blocking=True,
)
Expand Down Expand Up @@ -118,7 +120,7 @@ async def test_notification_error(
NOTIFY_DOMAIN,
NOTIFY_SERVICE,
{
ATTR_MESSAGE: "It's failure that gives you the proper perspective on success",
ATTR_MESSAGE: "It's failure that gives you the proper perspective",
},
blocking=True,
)