Skip to content

Commit a5a17ee

Browse files
committed
Update docstring, fix typo as suggested
1 parent c1e08d6 commit a5a17ee

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,10 @@ async def get_missing_energy_logs(self) -> None:
576576
async def energy_log_update(
577577
self, address: int | None, save_cache: bool = True
578578
) -> bool:
579-
"""Request energy logs and return True only when at least one recent, non-empty record was stored; otherwise return False."""
579+
"""Request energy logs from node and store them.
580+
581+
Return True if processing succeeded (records stored in memory), regardless of whether new entries were added.
582+
Return False on transport or address errors."""
580583
if address is None:
581584
return False
582585

@@ -1186,7 +1189,7 @@ async def _relay_init_update_state(self, state: bool) -> None:
11861189
NodeFeature.RELAY_INIT, self._relay_config
11871190
)
11881191
_LOGGER.debug(
1189-
"Saving relay_init state update to cachefor %s", self._mac_in_str
1192+
"Saving relay_init state update to cache for %s", self._mac_in_str
11901193
)
11911194
await self.save_cache()
11921195

0 commit comments

Comments
 (0)