Skip to content

Commit

Permalink
Revert "Sort keys in dicts in output yaml for 'config' command (espho…
Browse files Browse the repository at this point in the history
…me#1049)"

This reverts commit 0a926cd.
  • Loading branch information
natp13 committed Jun 17, 2020
1 parent d44dc24 commit 9bda7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esphome/yaml_util.py
Expand Up @@ -338,7 +338,7 @@ def represent_mapping(self, tag, mapping, flow_style=None):
self.represented_objects[self.alias_key] = node
best_style = True
if hasattr(mapping, 'items'):
mapping = sorted(mapping.items(), key=lambda item: item[0])
mapping = list(mapping.items())
for item_key, item_value in mapping:
node_key = self.represent_data(item_key)
node_value = self.represent_data(item_value)
Expand Down

0 comments on commit 9bda7d3

Please sign in to comment.