Bump aioshelly to 10.0.0 (#117728)
This commit is contained in:
parent
38f0c47942
commit
d84890bc59
7 changed files with 21 additions and 38 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue