From be8486c1c9525db5d4c0cd47ad1c1a0be89eda91 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Tue, 5 Mar 2024 07:27:08 +0900 Subject: [PATCH] Summary: Migration: fix condition to handle tank entities Because tank could be either tank_full or tank_empty, it had a more complex condition, using a string method that does not actually exist. Issue #984 --- custom_components/tuya_local/__init__.py | 2 +- custom_components/tuya_local/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/tuya_local/__init__.py b/custom_components/tuya_local/__init__.py index d88ceb9e85..94a66ade36 100644 --- a/custom_components/tuya_local/__init__.py +++ b/custom_components/tuya_local/__init__.py @@ -356,7 +356,7 @@ def update_unique_id13_2(entity_entry): if e.entity == platform and not e.name: new_id = e.unique_id(device_id) if (new_suffix and new_id.endswith(new_suffix)) or ( - new_suffix is None and new_id.contains(suffix) + new_suffix is None and suffix in new_id ): _LOGGER.info( "Migrating %s unique_id %s to %s", diff --git a/custom_components/tuya_local/manifest.json b/custom_components/tuya_local/manifest.json index 96dc8c1cb5..30162237c1 100644 --- a/custom_components/tuya_local/manifest.json +++ b/custom_components/tuya_local/manifest.json @@ -9,5 +9,5 @@ "iot_class": "local_push", "issue_tracker": "https://github.com/make-all/tuya-local/issues", "requirements": ["tinytuya==1.13.2"], - "version": "2024.3.0" + "version": "2024.3.1" }