Remove not used constants in smhi (#139298)

This commit is contained in:
G Johansson 2025-02-25 22:49:41 +01:00 committed by GitHub
parent 81db3dea41
commit 3230e741e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,6 @@
from __future__ import annotations from __future__ import annotations
from collections.abc import Mapping from collections.abc import Mapping
from datetime import timedelta
from typing import Any, Final from typing import Any, Final
from pysmhi import SMHIForecast from pysmhi import SMHIForecast
@ -80,12 +79,6 @@ CONDITION_MAP = {
for cond_code in cond_codes for cond_code in cond_codes
} }
TIMEOUT = 10
# 5 minutes between retrying connect to API again
RETRY_TIMEOUT = 5 * 60
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=31)
async def async_setup_entry( async def async_setup_entry(
hass: HomeAssistant, hass: HomeAssistant,