-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This version contains numerous changes in addition to the async conversion. It includes a new charging sensor, support for oauth, performance tweaks, and incorporation of black for formatting. BREAKING CHANGE: API calls now require async Closes #44, #47
- Loading branch information
Showing
17 changed files
with
921 additions
and
561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,35 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# SPDX-License-Identifier: Apache-2.0 | ||
""" | ||
Python Package for controlling Tesla API. | ||
For more details about this api, please refer to the documentation at | ||
https://github.com/zabuldon/teslajsonpy | ||
""" | ||
from teslajsonpy.battery_sensor import (Battery, Range) | ||
from teslajsonpy.binary_sensor import (ChargerConnectionSensor, ParkingSensor) | ||
from teslajsonpy.charger import (ChargerSwitch, RangeSwitch) | ||
from teslajsonpy.climate import (Climate, TempSensor) | ||
from teslajsonpy.battery_sensor import Battery, Range | ||
from teslajsonpy.binary_sensor import ChargerConnectionSensor, ParkingSensor | ||
from teslajsonpy.charger import ChargerSwitch, ChargingSensor, RangeSwitch | ||
from teslajsonpy.climate import Climate, TempSensor | ||
from teslajsonpy.controller import Controller | ||
from teslajsonpy.exceptions import TeslaException | ||
from teslajsonpy.gps import GPS, Odometer | ||
from teslajsonpy.lock import Lock | ||
|
||
from .__version__ import __version__ | ||
|
||
__all__ = ['Battery', 'Range', | ||
'ChargerConnectionSensor', 'ParkingSensor', | ||
'ChargerSwitch', 'RangeSwitch', | ||
'Climate', 'TempSensor', | ||
'Controller', | ||
'TeslaException', | ||
'GPS', 'Odometer', | ||
'Lock', | ||
'__version__'] | ||
__all__ = [ | ||
"Battery", | ||
"Range", | ||
"ChargerConnectionSensor", | ||
"ChargingSensor", | ||
"ParkingSensor", | ||
"ChargerSwitch", | ||
"RangeSwitch", | ||
"Climate", | ||
"TempSensor", | ||
"Controller", | ||
"TeslaException", | ||
"GPS", | ||
"Odometer", | ||
"Lock", | ||
"__version__", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.