Remove homeassistant.remote (#16099)

* Remove homeassistant.remote

* Use direct import for API

* Fix docstring
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2018-08-21 15:49:58 +02:00
1 parent ae5c4c7e13
commit 7bb5344942
18 files changed
+62 -555

No files matched your search

-11
View File
@@ -132,17 +132,6 @@ def _load_config(filename):
return {}
class JSONBytesDecoder(json.JSONEncoder):
"""JSONEncoder to decode bytes objects to unicode."""
# pylint: disable=method-hidden, arguments-differ
def default(self, obj):
"""Decode object if it's a bytes object, else defer to base class."""
if isinstance(obj, bytes):
return obj.decode()
return json.JSONEncoder.default(self, obj)
class HTML5PushRegistrationView(HomeAssistantView):
"""Accepts push registrations from a browser."""