Skip to content

Commit

Permalink
Binary type added. Version bump.
Browse files Browse the repository at this point in the history
  • Loading branch information
zabuldon committed Aug 30, 2017
1 parent 5aad0e0 commit b910382
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup
setup(
name='teslajsonpy',
version='0.0.6',
version='0.0.10',
packages=['teslajsonpy'],
include_package_data=True,
license='WTFPL',
Expand Down
2 changes: 1 addition & 1 deletion teslajsonpy/BatterySensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, data, controller):

self.uniq_name = 'Tesla model {} {} {}'.format(
str(self.__vin[3]).upper(), self.__vin, self.type)

self.bin_type = 0x5

self.update()

Expand Down
2 changes: 2 additions & 0 deletions teslajsonpy/BinarySensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def __init__(self, data, controller):

self.uniq_name = 'Tesla model {} {} {}'.format(
str(self.__vin[3]).upper(), self.__vin, self.type)
self.bin_type = 0x1

self.update()

Expand Down Expand Up @@ -53,6 +54,7 @@ def __init__(self, data, controller):

self.uniq_name = 'Tesla model {} {} {}'.format(
str(self.__vin[3]).upper(), self.__vin, self.type)
self.bin_type = 0x2

self.update()

Expand Down
2 changes: 2 additions & 0 deletions teslajsonpy/Climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def __init__(self, data, controller):

self.uniq_name = 'Tesla model {} {} {}'.format(
str(self.__vin[3]).upper(), self.__vin, self.type)
self.bin_type = 0x3

self.update()

Expand Down Expand Up @@ -106,6 +107,7 @@ def __init__(self, data, controller):

self.uniq_name = 'Tesla model {} {} {}'.format(
str(self.__vin[3]).upper(), self.__vin, self.type)
self.bin_type = 0x4

self.update()

Expand Down
2 changes: 1 addition & 1 deletion teslajsonpy/GPS.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, data, controller):

self.type = 'location tracker.'
self.hass_type = 'devices_tracker'

self.bin_type = 0x6
self.update()

def get_location(self):
Expand Down
1 change: 1 addition & 0 deletions teslajsonpy/Lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def __init__(self, data, controller):

self.uniq_name = 'Tesla model {} {} {}'.format(
str(self.__vin[3]).upper(), self.__vin, self.type)
self.bin_type = 0x7

self.update()

Expand Down

0 comments on commit b910382

Please sign in to comment.