Skip to content

Commit

Permalink
refactor: Tune down socket timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrapan committed Dec 31, 2024
1 parent 3bdc8ff commit 804f657
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions custom_components/solarman/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
CONF_PORT: 8899,
CONF_MB_SLAVE_ID: 1,
CONF_LOOKUP_FILE: "Auto",
CONF_MOD: False,
CONF_MPPT: 4,
CONF_PHASE: 3,
CONF_MOD: False,
CONF_BATTERY_NOMINAL_VOLTAGE: 48,
CONF_BATTERY_LIFE_CYCLE_RATING: 6000,
UPDATE_INTERVAL: 60,
Expand Down Expand Up @@ -89,9 +89,8 @@
TIMINGS_INTERVAL_SCALE = 1
TIMINGS_UPDATE_INTERVAL = td(seconds = TIMINGS_INTERVAL * TIMINGS_INTERVAL_SCALE)
TIMINGS_UPDATE_TIMEOUT = TIMINGS_INTERVAL * 6
TIMINGS_SOCKET_TIMEOUT = TIMINGS_INTERVAL * 4 - 1
TIMINGS_SOCKET_TIMEOUT = TIMINGS_INTERVAL * 3 - 1
TIMINGS_WAIT_SLEEP = 0.2
TIMINGS_WAIT_FOR_SLEEP = 1

# Constants also tied to TIMINGS_INTERVAL to ensure maximum synergy
ACTION_ATTEMPTS = 5
Expand Down

0 comments on commit 804f657

Please sign in to comment.