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:
parent
6c1024e9cb
commit
b73239ae53
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user