Skip to content

Commit

Permalink
Add energy added attribute to Tesla charging rate sensor (home-assist…
Browse files Browse the repository at this point in the history
…ant#32368)

* Add charge_energy_added attribute

* Bump teslajsonpy
  • Loading branch information
alandtse authored Mar 4, 2020
1 parent 7678d66 commit 6a6bf51
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
11 changes: 8 additions & 3 deletions homeassistant/components/tesla/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
"name": "Tesla",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/tesla",
"requirements": ["teslajsonpy==0.3.0"],
"requirements": [
"teslajsonpy==0.4.0"
],
"dependencies": [],
"codeowners": ["@zabuldon", "@alandtse"]
}
"codeowners": [
"@zabuldon",
"@alandtse"
]
}
1 change: 1 addition & 0 deletions homeassistant/components/tesla/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ async def async_update(self):
self._attributes = {
"time_left": self.tesla_device.time_left,
"added_range": self.tesla_device.added_range,
"charge_energy_added": self.tesla_device.charge_energy_added,
"charge_current_request": self.tesla_device.charge_current_request,
"charger_actual_current": self.tesla_device.charger_actual_current,
"charger_voltage": self.tesla_device.charger_voltage,
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1984,7 +1984,7 @@ temperusb==1.5.3
# tensorflow==1.13.2

# homeassistant.components.tesla
teslajsonpy==0.3.0
teslajsonpy==0.4.0

# homeassistant.components.thermoworks_smoke
thermoworks_smoke==0.1.8
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ sunwatcher==0.2.1
tellduslive==0.10.10

# homeassistant.components.tesla
teslajsonpy==0.3.0
teslajsonpy==0.4.0

# homeassistant.components.toon
toonapilib==3.2.4
Expand Down

0 comments on commit 6a6bf51

Please sign in to comment.