1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

Update util.py

This commit is contained in:
Otto Winter 2019-06-03 09:06:16 +02:00
parent 6c1024e9cb
commit b73239ae53
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -189,7 +189,7 @@ class OrderedDict(collections.OrderedDict):
if IS_PY2:
if len(self) == 1:
return
elif last:
if last:
# When moving to end, just pop and re-add
val = self.pop(key)
self[key] = val