We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3a2b67 + b8dd4c9 commit b8babc1Copy full SHA for b8babc1
contrib/sync-places.py
@@ -117,11 +117,7 @@ async def do_sync(session, args):
117
await session.sync_with_coordinator()
118
changed = True
119
120
- tags = config["places"][name].get("tags", {}).copy()
121
- for k, v in tags.items():
122
- if not isinstance(k, str) or not isinstance(v, str):
123
- del(tags[k])
124
- tags[str(k)] = str(v)
+ tags = { str(k): str(v) for k, v in config["places"][name].get("tags", {}).items() }
125
126
if place_tags != tags:
127
print(
0 commit comments