Skip to content

Commit

Permalink
2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
britkat1980 committed Jul 3, 2023
1 parent fc5eb85 commit 338b7ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 236 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [2.2.3] - 2023-07-03
### Fixed
- Fixed Charge_time_remaining device_class error

## [2.2.2] - 2023-07-03
### Fixed
- Fixed charge target bug (Thanks S0ckhamster)
Expand Down
5 changes: 5 additions & 0 deletions GivTCP/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,11 @@ def getData(fullrefresh): # Read from Inverter put in cache

# Battery Power
Battery_power = GEInv.p_battery
if GiV_Settings.first_run: # Make sure that we publish the HA message for both Charge and Discharge times
power_output['Charge_Time_Remaining'] = 0
power_output['Charge_Completion_Time'] = datetime.datetime.now().replace(tzinfo=GivLUT.timezone).isoformat()
power_output['Discharge_Time_Remaining'] = 0
power_output['Discharge_Completion_Time'] = datetime.datetime.now().replace(tzinfo=GivLUT.timezone).isoformat()
if Battery_power >= 0:
discharge_power = abs(Battery_power)
charge_power = 0
Expand Down
236 changes: 0 additions & 236 deletions givtcp.yaml

This file was deleted.

0 comments on commit 338b7ca

Please sign in to comment.