Skip to content

Commit dfd4286

Browse files
chemelli74frenck
authored andcommitted
Fix reload for Shelly devices with no script support (home-assistant#147344)
1 parent 1056187 commit dfd4286

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

homeassistant/components/shelly/coordinator.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,15 @@ async def shutdown(self) -> None:
835835
except InvalidAuthError:
836836
self.config_entry.async_start_reauth(self.hass)
837837
return
838+
except RpcCallError as err:
839+
# Ignore 404 (No handler for) error
840+
if err.code != 404:
841+
LOGGER.debug(
842+
"Error during shutdown for device %s: %s",
843+
self.name,
844+
err.message,
845+
)
846+
return
838847
except DeviceConnectionError as err:
839848
# If the device is restarting or has gone offline before
840849
# the ping/pong timeout happens, the shutdown command

0 commit comments

Comments
 (0)