Bump aioshelly to 10.0.0 (#117728)

This commit is contained in:
Shay Levy 2024-05-19 20:25:12 +03:00 committed by GitHub
parent 38f0c47942
commit d84890bc59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 21 additions and 38 deletions

View file

@ -482,14 +482,6 @@ def get_http_port(data: MappingProxyType[str, Any]) -> int:
return cast(int, data.get(CONF_PORT, DEFAULT_HTTP_PORT))
async def async_shutdown_device(device: BlockDevice | RpcDevice) -> None:
"""Shutdown a Shelly device."""
if isinstance(device, RpcDevice):
await device.shutdown()
if isinstance(device, BlockDevice):
device.shutdown()
@callback
def async_remove_shelly_rpc_entities(
hass: HomeAssistant, domain: str, mac: str, keys: list[str]