Migrate from pytz to python-dateutil (#49643)

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
J. Nick Koston 2021-05-08 00:46:26 -05:00 committed by GitHub
parent 13fe837fd2
commit bf2d40adfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 325 additions and 361 deletions

View file

@ -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