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