File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
""" Python Code for Communication with the Ecobee Thermostat """
2
- import json
3
2
from typing import Optional
4
3
5
4
import requests
6
5
from requests .exceptions import HTTPError , RequestException
7
6
7
+ try :
8
+ import simplejson as json
9
+ except ImportError :
10
+ import json
11
+
8
12
from .const import (
9
13
_LOGGER ,
10
14
ECOBEE_ACCESS_TOKEN ,
Original file line number Diff line number Diff line change 1
1
"""Utility functions for the python-ecobee-api library."""
2
- import json
3
2
import os
4
3
from typing import Optional
5
4
5
+ try :
6
+ import simplejson as json
7
+ except ImportError :
8
+ import json
9
+
6
10
from .const import _LOGGER
7
11
8
12
Original file line number Diff line number Diff line change 33
33
"""
34
34
35
35
setup (name = 'python-ecobee-api' ,
36
- version = '0.2.2 ' ,
36
+ version = '0.2.3 ' ,
37
37
description = 'Python API for talking to Ecobee thermostats' ,
38
38
url = 'https://github.com/nkgilley/python-ecobee-api' ,
39
39
author = 'Nolan Gilley' ,
You can’t perform that action at this time.
0 commit comments