Skip to content

Commit a997c4b

Browse files
committed
fix: format
1 parent 1fb74ac commit a997c4b

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/app/wol/fn.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ class ComputerAddresses(TypedDict):
1919
left: str
2020
right: str
2121
stream: str
22-
kizai:str
22+
kizai: str
2323

2424

2525
PC_MAC_ADDRESSES: ComputerAddresses = {
2626
"left": "04:7C:16:01:41:A7",
2727
"right": "FC:34:97:BA:12:F1",
2828
"stream": "34:5A:60:A9:5F:CA",
29-
"kizai" : "4C:C5:D9:4F:2D:9D",
29+
"kizai": "4C:C5:D9:4F:2D:9D",
3030
}
3131

3232
PC_IP_ADDRESSES: ComputerAddresses = {
3333
"left": "192.168.39.31",
3434
"right": "192.168.39.30",
3535
"stream": "192.168.39.32",
36-
"kizai": "192.168.39.33"
36+
"kizai": "192.168.39.33",
3737
}
3838

3939

@@ -60,14 +60,14 @@ async def get_computer_status() -> ComputerStatus:
6060
"https://wol.vlldev.com/check_status", params={"ip_address": PC_IP_ADDRESSES["stream"], "test_type": "icmp"}
6161
) as stream_response,
6262
session.get(
63-
"https://wol.vlldev.com/check_status", params={"ip_address": PC_IP_ADDRESSES["kizai"], "test_type": "icmp"}
63+
"https://wol.vlldev.com/check_status", params={"ip_address": PC_IP_ADDRESSES["kizai"], "test_type": "icmp"}
6464
) as kizai_response,
6565
):
6666
left_is_wake = convert_status_str_to_bool(await left_response.text())
6767
right_is_wake = convert_status_str_to_bool(await right_response.text())
6868
stream_is_wake = convert_status_str_to_bool(await stream_response.text())
6969
kizai_is_wake = convert_status_str_to_bool(await kizai_response.text())
70-
return {"left": left_is_wake, "right": right_is_wake, "stream": stream_is_wake, "kizai":kizai_is_wake}
70+
return {"left": left_is_wake, "right": right_is_wake, "stream": stream_is_wake, "kizai": kizai_is_wake}
7171

7272

7373
class ComputerBootResult(Enum):

src/app/wol/view.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ async def handle_wol_kizai(self, interaction: Interaction) -> None:
6969
case ComputerBootResult.ERROR:
7070
await interaction.followup.send("エラーが発生しました。", ephemeral=True)
7171

72-
7372
async def handle_refresh(self, interaction: Interaction) -> None:
7473
await interaction.response.defer(ephemeral=True)
7574
current_status = await get_computer_status()

0 commit comments

Comments
 (0)