From 9bda7d3dbb3282ea60a16effcfdcb15804278050 Mon Sep 17 00:00:00 2001 From: natp13 Date: Wed, 17 Jun 2020 11:23:51 -0700 Subject: [PATCH] Revert "Sort keys in dicts in output yaml for 'config' command (#1049)" This reverts commit 0a926cd153b2a68a0be59720d8c5dac954d9f5a3. --- esphome/yaml_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/yaml_util.py b/esphome/yaml_util.py index 1758e739db3..053fba62742 100644 --- a/esphome/yaml_util.py +++ b/esphome/yaml_util.py @@ -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)