From 74d77573409bae00ab5f3c939edd86577edb5c50 Mon Sep 17 00:00:00 2001 From: "Li-Huai (Allan) Lin" Date: Wed, 3 May 2023 01:28:17 +0800 Subject: [PATCH] Bump version to 1.3.0. --- custom_components/jcihitachi_tw/__init__.py | 8 ++++++-- custom_components/jcihitachi_tw/manifest.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/custom_components/jcihitachi_tw/__init__.py b/custom_components/jcihitachi_tw/__init__.py index dba45d7..5be5b9a 100644 --- a/custom_components/jcihitachi_tw/__init__.py +++ b/custom_components/jcihitachi_tw/__init__.py @@ -27,7 +27,7 @@ from JciHitachi.api import JciHitachiAWSAPI def _lazy_install(): - custom_required_packages = ["LibJciHitachi==1.1.0"] + custom_required_packages = ["LibJciHitachi==1.2.0"] links = "https://qqaatw.github.io/aws-crt-python-musllinux/" for pkg in custom_required_packages: if not is_installed(pkg) and not install_package(pkg, find_links=links): @@ -69,6 +69,10 @@ async def async_update_data(): update_interval=DATA_UPDATE_INTERVAL, ) + # Reset the update scheduler as the data already exists in + # `hass.data[DOMAIN][UPDATED_DATA]`. + coordinator.async_set_updated_data(None) + return coordinator async def async_setup(hass, config): @@ -169,7 +173,7 @@ async def async_setup_entry(hass, config_entry): hass.data[DOMAIN][UPDATE_DATA] = Queue() hass.data[DOMAIN][UPDATED_DATA] = api.get_status(legacy=True) hass.data[DOMAIN][COORDINATOR] = build_coordinator(hass, api) - + # Start jcihitachi components _LOGGER.debug("Starting JciHitachi components.") for platform in PLATFORMS: diff --git a/custom_components/jcihitachi_tw/manifest.json b/custom_components/jcihitachi_tw/manifest.json index 410e260..0c3ba62 100644 --- a/custom_components/jcihitachi_tw/manifest.json +++ b/custom_components/jcihitachi_tw/manifest.json @@ -7,5 +7,5 @@ "iot_class": "cloud_polling", "issue_tracker": "https://github.com/qqaatw/JciHitachiHA/issues", "requirements": [], - "version": "1.2.0" + "version": "1.3.0" } \ No newline at end of file