mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +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 IS_PY2:
|
||||||
if len(self) == 1:
|
if len(self) == 1:
|
||||||
return
|
return
|
||||||
elif last:
|
if last:
|
||||||
# When moving to end, just pop and re-add
|
# When moving to end, just pop and re-add
|
||||||
val = self.pop(key)
|
val = self.pop(key)
|
||||||
self[key] = val
|
self[key] = val
|
||||||
|
Loading…
x
Reference in New Issue
Block a user