From 5f0b3d0fcac8c4318a91c39104e7b4486dd0c505 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 7 Feb 2015 13:22:23 -0800 Subject: [PATCH] Fix JSON serialisation bug --- homeassistant/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/remote.py b/homeassistant/remote.py index 436e95f6333..bc3a16dd210 100644 --- a/homeassistant/remote.py +++ b/homeassistant/remote.py @@ -267,7 +267,7 @@ class JSONEncoder(json.JSONEncoder): # If the JSON serializer couldn't serialize it # it might be a generator, convert it to a list try: - return [json.JSONEncoder.default(self, child_obj) + return [self.default(child_obj) for child_obj in obj] except TypeError: # Ok, we're lost, cause the original error