We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deb96db commit b1be32dCopy full SHA for b1be32d
plugwise_usb/nodes/sed.py
@@ -693,7 +693,12 @@ async def sed_configure( # pylint: disable=too-many-arguments
693
maintenance_interval,
694
sleep_duration,
695
)
696
- if (response := await request.send()) is None:
+ try:
697
+ response = await request.send()
698
+ except MessageError as exc:
699
+ return False
700
+
701
+ if response is None:
702
self._new_battery_config = BatteryConfig()
703
_LOGGER.warning(
704
"No response from %s to configure sleep settings request", self.name
0 commit comments