Skip to content

Commit

Permalink
Summary: Migration: fix condition to handle tank entities
Browse files Browse the repository at this point in the history
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
  • Loading branch information
make-all committed Mar 4, 2024
1 parent b5e2dca commit be8486c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/tuya_local/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/tuya_local/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit be8486c

Please sign in to comment.