Migrate from pytz to python-dateutil (#49643)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
13fe837fd2
commit
bf2d40adfe
37 changed files with 325 additions and 361 deletions
|
@ -7,7 +7,6 @@ from urllib.parse import urlparse
|
|||
|
||||
from aiohttp.test_utils import TestClient
|
||||
import arrow
|
||||
import pytz
|
||||
from withings_api.common import (
|
||||
MeasureGetMeasResponse,
|
||||
NotifyAppli,
|
||||
|
@ -40,6 +39,7 @@ from homeassistant.core import HomeAssistant
|
|||
from homeassistant.helpers import config_entry_oauth2_flow
|
||||
from homeassistant.helpers.config_entry_oauth2_flow import AUTH_CALLBACK_PATH
|
||||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.util import dt as dt_util
|
||||
|
||||
from tests.test_util.aiohttp import AiohttpClientMocker
|
||||
|
||||
|
@ -77,7 +77,7 @@ def new_profile_config(
|
|||
measuregrps=[],
|
||||
more=False,
|
||||
offset=0,
|
||||
timezone=pytz.UTC,
|
||||
timezone=dt_util.UTC,
|
||||
updatetime=arrow.get(12345),
|
||||
),
|
||||
api_response_sleep_get_summary=api_response_sleep_get_summary
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue