Code styling tweaks to the LaMetric integration (#85469)

This commit is contained in:
Franck Nijhof 2023-01-09 00:36:54 +01:00 committed by GitHub
parent 4162dfdc4e
commit 318871f8a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -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"],

View File

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