Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Commit faa21c1

Browse files
committed
lint
1 parent 812e7de commit faa21c1

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def long_description():
1818
setup(
1919
name="anthropic_hass",
2020
version=VERSION,
21-
description="Home Assistant custom component for Anthropic Claude conversation agent",
21+
description="Home Assistant custom component "
22+
"for Anthropic Claude conversation agent",
2223
long_description=long_description(),
2324
long_description_content_type="text/markdown",
2425
url="https://github.com/Shulyaka/anthropic-hass",

tests/test_config_flow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ async def test_options(
104104
(APITimeoutError(request=None), "timeout_connect"),
105105
(
106106
BadRequestError(
107-
message="Your credit balance is too low to access the Claude API. Please go to Plans & Billing to upgrade or purchase credits.",
107+
message="Your credit balance is too low to access the Claude API. "
108+
"Please go to Plans & Billing to upgrade or purchase credits.",
108109
response=Response(
109110
status_code=400,
110111
request=Request(method="POST", url=URL()),

tests/test_conversation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ def completion_result(*args, messages, **kwargs):
363363
"role": "user",
364364
"content": [
365365
{
366-
"content": '{"error": "HomeAssistantError", "error_text": "Test tool exception"}',
366+
"content": '{"error": "HomeAssistantError", '
367+
'"error_text": "Test tool exception"}',
367368
"tool_use_id": "toolu_0123456789AbCdEfGhIjKlM",
368369
"type": "tool_result",
369370
}

tests/test_init.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ def test_test(hass):
2626
(APITimeoutError(request=None), "Request timed out"),
2727
(
2828
BadRequestError(
29-
message="Your credit balance is too low to access the Claude API. Please go to Plans & Billing to upgrade or purchase credits.",
29+
message="Your credit balance is too low to access the Claude API. "
30+
"Please go to Plans & Billing to upgrade or purchase credits.",
3031
response=Response(
3132
status_code=400,
3233
request=Request(method="POST", url=URL()),
3334
),
3435
body={"type": "error", "error": {"type": "invalid_request_error"}},
3536
),
36-
"anthropic integration not ready yet: Your credit balance is too low to access the Claude API",
37+
"anthropic integration not ready yet: "
38+
"Your credit balance is too low to access the Claude API",
3739
),
3840
(
3941
AuthenticationError(

0 commit comments

Comments
 (0)