Skip to content

Commit

Permalink
for now do not use trip data due to too many requests
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach committed Nov 14, 2023
1 parent d8c0671 commit 5088e3b
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion vwsfriend/vwsfriend/vwsfriend_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from weconnect.errors import APICompatibilityError, AuthentificationError, TemporaryAuthentificationError
from weconnect.util import DuplicateFilter
from weconnect.__version import __version__ as __weconnect_version__
from weconnect.domain import Domain

from vwsfriend.ui.vwsfriend_ui import VWsFriendUI
from vwsfriend.homekit.bridge import VWsFriendBridge
Expand Down Expand Up @@ -515,7 +516,27 @@ def mqttWorker():
mqttCLient.updateWeConnect(reraise=True)
else:
LOG.info('Updating data from WeConnect')
weConnect.update(updateCapabilities=True, updatePictures=True, force=True)
weConnect.update(updateCapabilities=True, updatePictures=True, force=True, selective=[Domain.ACCESS,
Domain.ACTIVEVENTILATION,
Domain.AUTOMATION,
Domain.AUXILIARY_HEATING,
Domain.USER_CAPABILITIES,
Domain.CHARGING,
Domain.CHARGING_PROFILES,
Domain.BATTERY_CHARGING_CARE,
Domain.CLIMATISATION,
Domain.CLIMATISATION_TIMERS,
Domain.DEPARTURE_TIMERS,
Domain.FUEL_STATUS,
Domain.VEHICLE_LIGHTS,
Domain.LV_BATTERY,
Domain.READINESS,
Domain.VEHICLE_HEALTH_INSPECTION,
Domain.VEHICLE_HEALTH_WARNINGS,
Domain.OIL_LEVEL,
Domain.MEASUREMENTS,
Domain.BATTERY_SUPPORT,
Domain.PARKING])
connector.commit()
if args.withHomekit and not weConnectBridgeInitialized:
weConnectBridgeInitialized = True
Expand Down

0 comments on commit 5088e3b

Please sign in to comment.