Skip to content

Commit 66576f3

Browse files
committed
Rename at_read_batch to read_batch for consistency
1 parent a36d6d6 commit 66576f3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

custom_components/solis_cloud_control/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ async def read(self, cid: int) -> str:
129129
interval=API_RETRY_DELAY_SECONDS,
130130
logger=_LOGGER,
131131
)
132-
async def at_read_batch(self, cids: list[int]) -> dict[int, str]:
132+
async def read_batch(self, cids: list[int]) -> dict[int, str]:
133133
date = current_date()
134134
payload = {"inverterSn": self._inverter_sn, "cids": ",".join(map(str, cids))}
135135

custom_components/solis_cloud_control/coordinator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import asyncio
21
import logging
32
from datetime import timedelta
43

@@ -54,7 +53,7 @@ def __init__(
5453

5554
async def _async_update_data(self) -> SolisCloudControlData:
5655
try:
57-
result = await self.api_client.at_read_batch(_ALL_CIDS)
56+
result = await self.api_client.read_batch(_ALL_CIDS)
5857
data = SolisCloudControlData({cid: result.get(cid) for cid in _ALL_CIDS})
5958
_LOGGER.debug("Data read from API: %s", data)
6059
return data

0 commit comments

Comments
 (0)