def delete(ctx: Configuration, entity): """Delete entity state from Home Assistant.""" ctx.auto_output("table") deleted = api.remove_state(ctx, entity) if deleted: ctx.echo("State for entity %s deleted.", entity) else: ctx.echo("Entity %s not found.", entity)