Skip to content

Commit 846ca96

Browse files
committed
Add err to raise messages
1 parent 597e021 commit 846ca96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugwise/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ async def async_update(self) -> dict[str, GwEntityData]:
332332
try:
333333
data = await self._smile_api.async_update()
334334
except (DataMissingError, KeyError) as err:
335-
raise PlugwiseError("No Plugwise data received") from err
335+
raise PlugwiseError(f"No Plugwise data received: {err}") from err
336336

337337
return data
338338

plugwise/smile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ async def async_update(self) -> dict[str, GwEntityData]:
138138
"cooling_enabled"
139139
]
140140
except KeyError as err:
141-
raise DataMissingError("No Plugwise actual data received") from err
141+
raise DataMissingError(f"No Plugwise actual data received: {err}") from err
142142

143143
return self.gw_entities
144144

0 commit comments

Comments
 (0)