Skip to content

Commit f9454d0

Browse files
committed
fix: don't read data for inverter on/off switch
1 parent 2bd701b commit f9454d0

File tree

1 file changed

+4
-3
lines changed
  • custom_components/solis_cloud_control/inverters

1 file changed

+4
-3
lines changed

custom_components/solis_cloud_control/inverters/inverter.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,10 @@ def create_hybrid_inverter(
346346
def all_cids(self) -> list[int]:
347347
cids: list[int] = []
348348

349-
if self.on_off:
350-
cids.append(self.on_off.on_cid)
351-
cids.append(self.on_off.off_cid)
349+
# CIDs for on-off are write-only, so they are not included in the read operations.
350+
# if self.on_off:
351+
# cids.append(self.on_off.on_cid)
352+
# cids.append(self.on_off.off_cid)
352353
if self.storage_mode:
353354
cids.append(self.storage_mode.cid)
354355
if self.charge_discharge_settings:

0 commit comments

Comments
 (0)