From 20cbcd77cacfa10db3f69581937cc34515e8c999 Mon Sep 17 00:00:00 2001 From: Quentin POLLET Date: Wed, 18 Dec 2024 12:32:44 +0000 Subject: [PATCH] fix mypy --- homeassistant/components/freebox/router.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/freebox/router.py b/homeassistant/components/freebox/router.py index efa96eca5a745d..8843d22bd0597f 100644 --- a/homeassistant/components/freebox/router.py +++ b/homeassistant/components/freebox/router.py @@ -8,7 +8,6 @@ import json import logging import os -from pathlib import Path import re from typing import Any @@ -60,7 +59,7 @@ async def get_api(hass: HomeAssistant, host: str) -> Freepybox: if not os.path.exists(freebox_path): await hass.async_add_executor_job(os.makedirs, freebox_path) - token_file = Path(f"{freebox_path}/{slugify(host)}.conf") + token_file: str = f"{freebox_path}/{slugify(host)}.conf" return Freepybox(APP_DESC, token_file, API_VERSION)