Bump pyControl4 to 1.1.0 (#90115)

* Bump pyControl4 to 1.1.0

* Remove mock token_expiration from control4
This commit is contained in:
Nalin Mahajan 2023-03-23 11:34:38 -05:00 committed by GitHub
parent cb578c71e0
commit e290febb38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 8 deletions

View File

@ -6,7 +6,7 @@
"documentation": "https://www.home-assistant.io/integrations/control4",
"iot_class": "local_polling",
"loggers": ["pyControl4"],
"requirements": ["pyControl4==0.0.6"],
"requirements": ["pyControl4==1.1.0"],
"ssdp": [
{
"st": "c4:director"

View File

@ -1457,7 +1457,7 @@ py17track==2021.12.2
pyCEC==0.5.2
# homeassistant.components.control4
pyControl4==0.0.6
pyControl4==1.1.0
# homeassistant.components.met_eireann
pyMetEireann==2021.8.0

View File

@ -1066,7 +1066,7 @@ py17track==2021.12.2
pyCEC==0.5.2
# homeassistant.components.control4
pyControl4==0.0.6
pyControl4==1.1.0
# homeassistant.components.met_eireann
pyMetEireann==2021.8.0

View File

@ -1,5 +1,4 @@
"""Test the Control4 config flow."""
import datetime
from unittest.mock import AsyncMock, patch
from pyControl4.account import C4Account
@ -25,10 +24,7 @@ def _get_mock_c4_account(
"href": "https://apis.control4.com/account/v3/rest/accounts/000000",
"name": "Name",
},
getDirectorBearerToken={
"token": "token",
"token_expiration": datetime.datetime(2020, 7, 15, 13, 50, 15, 26940),
},
getDirectorBearerToken={"token": "token"},
):
c4_account_mock = AsyncMock(C4Account)