Bump py17track to 2021.12.1 (#60762)

This commit is contained in:
Aaron Bach 2021-12-01 10:52:33 -07:00 committed by GitHub
parent b65b2c4cd1
commit a053c0a106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 94 additions and 94 deletions

View File

@ -2,7 +2,7 @@
"domain": "seventeentrack", "domain": "seventeentrack",
"name": "17TRACK", "name": "17TRACK",
"documentation": "https://www.home-assistant.io/integrations/seventeentrack", "documentation": "https://www.home-assistant.io/integrations/seventeentrack",
"requirements": ["py17track==3.2.1"], "requirements": ["py17track==2021.12.1"],
"codeowners": [], "codeowners": [],
"iot_class": "cloud_polling" "iot_class": "cloud_polling"
} }

View File

@ -1305,7 +1305,7 @@ py-synologydsm-api==1.0.4
py-zabbix==1.1.7 py-zabbix==1.1.7
# homeassistant.components.seventeentrack # homeassistant.components.seventeentrack
py17track==3.2.1 py17track==2021.12.1
# homeassistant.components.hdmi_cec # homeassistant.components.hdmi_cec
pyCEC==0.5.1 pyCEC==0.5.1

View File

@ -792,7 +792,7 @@ py-nightscout==1.2.2
py-synologydsm-api==1.0.4 py-synologydsm-api==1.0.4
# homeassistant.components.seventeentrack # homeassistant.components.seventeentrack
py17track==3.2.1 py17track==2021.12.1
# homeassistant.components.control4 # homeassistant.components.control4
pyControl4==0.0.6 pyControl4==0.0.6

View File

@ -172,14 +172,14 @@ async def test_invalid_config(hass):
async def test_add_package(hass): async def test_add_package(hass):
"""Ensure package is added correctly when user add a new package.""" """Ensure package is added correctly when user add a new package."""
package = Package( package = Package(
"456", tracking_number="456",
206, destination_country=206,
"friendly name 1", friendly_name="friendly name 1",
"info text 1", info_text="info text 1",
"location 1", location="location 1",
"2020-08-10 10:32", timestamp="2020-08-10 10:32",
206, origin_country=206,
2, package_type=2,
) )
ProfileMock.package_list = [package] ProfileMock.package_list = [package]
@ -188,14 +188,14 @@ async def test_add_package(hass):
assert len(hass.states.async_entity_ids()) == 1 assert len(hass.states.async_entity_ids()) == 1
package2 = Package( package2 = Package(
"789", tracking_number="789",
206, destination_country=206,
"friendly name 2", friendly_name="friendly name 2",
"info text 2", info_text="info text 2",
"location 2", location="location 2",
"2020-08-10 14:25", timestamp="2020-08-10 14:25",
206, origin_country=206,
2, package_type=2,
) )
ProfileMock.package_list = [package, package2] ProfileMock.package_list = [package, package2]
@ -208,24 +208,24 @@ async def test_add_package(hass):
async def test_remove_package(hass): async def test_remove_package(hass):
"""Ensure entity is not there anymore if package is not there.""" """Ensure entity is not there anymore if package is not there."""
package1 = Package( package1 = Package(
"456", tracking_number="456",
206, destination_country=206,
"friendly name 1", friendly_name="friendly name 1",
"info text 1", info_text="info text 1",
"location 1", location="location 1",
"2020-08-10 10:32", timestamp="2020-08-10 10:32",
206, origin_country=206,
2, package_type=2,
) )
package2 = Package( package2 = Package(
"789", tracking_number="789",
206, destination_country=206,
"friendly name 2", friendly_name="friendly name 2",
"info text 2", info_text="info text 2",
"location 2", location="location 2",
"2020-08-10 14:25", timestamp="2020-08-10 14:25",
206, origin_country=206,
2, package_type=2,
) )
ProfileMock.package_list = [package1, package2] ProfileMock.package_list = [package1, package2]
@ -248,14 +248,14 @@ async def test_remove_package(hass):
async def test_friendly_name_changed(hass): async def test_friendly_name_changed(hass):
"""Test friendly name change.""" """Test friendly name change."""
package = Package( package = Package(
"456", tracking_number="456",
206, destination_country=206,
"friendly name 1", friendly_name="friendly name 1",
"info text 1", info_text="info text 1",
"location 1", location="location 1",
"2020-08-10 10:32", timestamp="2020-08-10 10:32",
206, origin_country=206,
2, package_type=2,
) )
ProfileMock.package_list = [package] ProfileMock.package_list = [package]
@ -265,14 +265,14 @@ async def test_friendly_name_changed(hass):
assert len(hass.states.async_entity_ids()) == 1 assert len(hass.states.async_entity_ids()) == 1
package = Package( package = Package(
"456", tracking_number="456",
206, destination_country=206,
"friendly name 2", friendly_name="friendly name 2",
"info text 1", info_text="info text 1",
"location 1", location="location 1",
"2020-08-10 10:32", timestamp="2020-08-10 10:32",
206, origin_country=206,
2, package_type=2,
) )
ProfileMock.package_list = [package] ProfileMock.package_list = [package]
@ -289,15 +289,15 @@ async def test_friendly_name_changed(hass):
async def test_delivered_not_shown(hass): async def test_delivered_not_shown(hass):
"""Ensure delivered packages are not shown.""" """Ensure delivered packages are not shown."""
package = Package( package = Package(
"456", tracking_number="456",
206, destination_country=206,
"friendly name 1", friendly_name="friendly name 1",
"info text 1", info_text="info text 1",
"location 1", location="location 1",
"2020-08-10 10:32", timestamp="2020-08-10 10:32",
206, origin_country=206,
2, package_type=2,
40, status=40,
) )
ProfileMock.package_list = [package] ProfileMock.package_list = [package]
@ -312,15 +312,15 @@ async def test_delivered_not_shown(hass):
async def test_delivered_shown(hass): async def test_delivered_shown(hass):
"""Ensure delivered packages are show when user choose to show them.""" """Ensure delivered packages are show when user choose to show them."""
package = Package( package = Package(
"456", tracking_number="456",
206, destination_country=206,
"friendly name 1", friendly_name="friendly name 1",
"info text 1", info_text="info text 1",
"location 1", location="location 1",
"2020-08-10 10:32", timestamp="2020-08-10 10:32",
206, origin_country=206,
2, package_type=2,
40, status=40,
) )
ProfileMock.package_list = [package] ProfileMock.package_list = [package]
@ -335,14 +335,14 @@ async def test_delivered_shown(hass):
async def test_becomes_delivered_not_shown_notification(hass): async def test_becomes_delivered_not_shown_notification(hass):
"""Ensure notification is triggered when package becomes delivered.""" """Ensure notification is triggered when package becomes delivered."""
package = Package( package = Package(
"456", tracking_number="456",
206, destination_country=206,
"friendly name 1", friendly_name="friendly name 1",
"info text 1", info_text="info text 1",
"location 1", location="location 1",
"2020-08-10 10:32", timestamp="2020-08-10 10:32",
206, origin_country=206,
2, package_type=2,
) )
ProfileMock.package_list = [package] ProfileMock.package_list = [package]
@ -352,15 +352,15 @@ async def test_becomes_delivered_not_shown_notification(hass):
assert len(hass.states.async_entity_ids()) == 1 assert len(hass.states.async_entity_ids()) == 1
package_delivered = Package( package_delivered = Package(
"456", tracking_number="456",
206, destination_country=206,
"friendly name 1", friendly_name="friendly name 1",
"info text 1", info_text="info text 1",
"location 1", location="location 1",
"2020-08-10 10:32", timestamp="2020-08-10 10:32",
206, origin_country=206,
2, package_type=2,
40, status=40,
) )
ProfileMock.package_list = [package_delivered] ProfileMock.package_list = [package_delivered]
@ -391,14 +391,14 @@ async def test_summary_correctly_updated(hass):
async def test_utc_timestamp(hass): async def test_utc_timestamp(hass):
"""Ensure package timestamp is converted correctly from HA-defined time zone to UTC.""" """Ensure package timestamp is converted correctly from HA-defined time zone to UTC."""
package = Package( package = Package(
"456", tracking_number="456",
206, destination_country=206,
"friendly name 1", friendly_name="friendly name 1",
"info text 1", info_text="info text 1",
"location 1", location="location 1",
"2020-08-10 10:32", timestamp="2020-08-10 10:32",
206, origin_country=206,
2, package_type=2,
tz="Asia/Jakarta", tz="Asia/Jakarta",
) )
ProfileMock.package_list = [package] ProfileMock.package_list = [package]