Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
marq24 committed May 6, 2024
1 parent 249a688 commit 8a06a29
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions custom_components/goecharger_api2/pygoecharger_ha/__init__.py
Original file line number Diff line number Diff line change
@@ -79,24 +79,12 @@ async def read_all_states(self):
# copy all fields from 'idle_states' to self._states
self._states.update(idle_states)

# self._states[Tag.ERR.key] = idle_states[Tag.ERR.key]
# self._states[Tag.NRG.key] = idle_states[Tag.NRG.key]
# self._states[Tag.TMA.key] = idle_states[Tag.TMA.key]
# self._states[Tag.CAR.key] = idle_states[Tag.CAR.key]
# self._states[Tag.MODELSTATUS.key] = idle_states[Tag.MODELSTATUS.key]
#
# if self._REQUEST_IDS_DATA:
# self._states[Tag.PGRID.key] = idle_states[Tag.PGRID.key]
# self._states[Tag.PAKKU.key] = idle_states[Tag.PAKKU.key]
# self._states[Tag.PPV.key] = idle_states[Tag.PPV.key]
# self._REQUEST_IDS_DATA = False
#
# if include_times:
# list=FILTER_TIMES_ADDON.split(',')
# for a_key in list:
# if a_key in idle_states:
# self._states[a_key] = idle_states[a_key]
# reset the '_REQUEST_IDS_DATA' flag (will be enabled again, if we post new PV data to the
# wallbox)
if self._REQUEST_IDS_DATA:
self._REQUEST_IDS_DATA = False

# chck, if the car idle state have changed to something else
if Tag.CAR.key in self._states and self._states[Tag.CAR.key] != CAR_VALUES.IDLE.value:
# the car state is not 'idle' - so we should fetch all states...
await self.read_all_states()

0 comments on commit 8a06a29

Please sign in to comment.