mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Code styling tweaks to the LaMetric integration (#85469)
This commit is contained in:
parent
4162dfdc4e
commit
318871f8a9
@ -116,7 +116,10 @@ class LaMetricFlowHandler(AbstractOAuth2FlowHandler, domain=DOMAIN):
|
||||
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"],
|
||||
|
@ -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,
|
||||
)
|
||||
@ -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,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user