Skip to content

Commit

Permalink
refactor: Pseudo enums reworked as true enums
Browse files Browse the repository at this point in the history
- In the context of the HA
refactor: Naming: Load UPS entities prefix from UPS
fix: Extended Power losses to include all inputs
fix: 'deye_string' inverter profile file formatting
  • Loading branch information
davidrapan committed Jul 15, 2024
1 parent 40e7199 commit 32a5f2e
Show file tree
Hide file tree
Showing 9 changed files with 578 additions and 439 deletions.
2 changes: 1 addition & 1 deletion custom_components/solarman/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async def async_get(self, runtime = 0):
requests_count = len(requests)
result = 0

_LOGGER.debug(f"Scheduling {requests_count} query requests. #{runtime}")
_LOGGER.debug(f"Scheduling {requests_count} query requests. #{runtime}")

try:
for request in requests:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/solarman/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
TIMINGS_COORDINATOR_TIMEOUT = TIMINGS_INTERVAL * 6
TIMINGS_SOCKET_TIMEOUT = TIMINGS_INTERVAL * 3 - 1
TIMINGS_QUERY_INTERVAL_DEFAULT = 60
TIMINGS_QUERY_EXCEPT_SLEEP = 4
TIMINGS_QUERY_EXCEPT_SLEEP = 2

REGISTERS_MIN_SPAN_DEFAULT = 25
REGISTERS_DIGITS_DEFAULT = 6
Expand Down
Loading

0 comments on commit 32a5f2e

Please sign in to comment.