Skip to content

Remove float refs to IntEnum class values #832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions custom_components/solaredge_modbus_multi/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,15 @@ class ModbusDefaults(IntEnum):
ReconnectDelay to ReconnectDelayMax.
Set `ReconnectDelay = 0` to avoid automatic reconnection.
Disabled because it didn't work properly with HA Async in PR#360.

ReconnectDelay and ReconnectDelayMax can be set to seconds.milliseconds
values using the advanced YAML configuration option.
"""

Timeout = 3 # Timeout for a request, in seconds.
Retries = 3 # Max number of retries per request.
ReconnectDelay = 0 # Minimum in seconds.milliseconds before reconnecting.
ReconnectDelayMax = 3.0 # Maximum in seconds.milliseconds before reconnecting.
ReconnectDelay = 0 # Minimum in seconds before reconnecting.
ReconnectDelayMax = 3 # Maximum in seconds before reconnecting.


class SolarEdgeTimeouts(IntEnum):
Expand Down