Skip to content

Commit da2c6b8

Browse files
committed
Update CONFIG_README and config.py to clarify EOS server settings and add timeout configuration for optimize requests
1 parent 3bdce4a commit da2c6b8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/CONFIG_README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ A default config file will be created with the first start, if there is no confi
1414

1515
### EOS Server Configuration
1616

17-
- **eos.server**: Default EOS server address.
18-
- **eos.port**: Default port for EOS server.
17+
- **eos.server**: EOS server address.
18+
- **eos.port**: port for EOS server.
19+
- **timeout**: timeout for EOS optimize request in seconds
1920

2021
### Electricity Price Configuration
2122

@@ -88,8 +89,9 @@ load:
8889
access_token: 123456abcd # access token for homeassistant (optional)
8990

9091
eos:
91-
server: 192.168.1.94 # Default EOS server address
92-
port: 8503 # Default port for EOS server
92+
server: 192.168.1.94 # EOS server address
93+
port: 8503 # port for EOS server
94+
timeout: 180 # timeout for EOS optimize request in seconds
9395

9496
price:
9597
source: tibber # Data source for electricity price

src/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def create_default_config(self):
120120
"port", before="port for EOS server - default: 8503"
121121
)
122122
config["eos"].yaml_set_comment_before_after_key(
123-
"timeout", before="Default timeout for EOS optimize request - default: 180"
123+
"timeout", before="timeout for EOS optimize request in seconds - default: 180"
124124
)
125125
# price configuration
126126
config.yaml_set_comment_before_after_key(

0 commit comments

Comments
 (0)