Correct JSONDecodeError in co2signal (#101206)

This commit is contained in:
Joost Lekkerkerker 2023-10-01 18:28:53 +02:00 committed by Franck Nijhof
parent b24f09b47e
commit cf6f0cf266
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -3,11 +3,11 @@ from __future__ import annotations
from collections.abc import Mapping from collections.abc import Mapping
from datetime import timedelta from datetime import timedelta
from json import JSONDecodeError
import logging import logging
from typing import Any, cast from typing import Any, cast
import CO2Signal import CO2Signal
from requests.exceptions import JSONDecodeError
from homeassistant.config_entries import ConfigEntry from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE